forked from async-graphql/async-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkind.rs
29 lines (21 loc) · 824 Bytes
/
kind.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use async_graphql_derive::Enum;
/// An enum describing what kind of type a given `__Type` is.
#[Enum(internal)]
pub enum __TypeKind {
/// Indicates this type is a scalar.
Scalar,
/// Indicates this type is an object. `fields` and `interfaces` are valid fields.
Object,
/// Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.
Interface,
/// Indicates this type is a union. `possibleTypes` is a valid field.
Union,
/// Indicates this type is an enum. `enumValues` is a valid field.
Enum,
/// Indicates this type is an input object. `inputFields` is a valid field.
InputObject,
/// Indicates this type is a list. `ofType` is a valid field.
List,
/// Indicates this type is a non-null. `ofType` is a valid field.
NonNull,
}