async_graphql/model/
kind.rs

1use crate::Enum;
2
3/// An enum describing what kind of type a given `__Type` is.
4#[derive(Enum, Copy, Clone, Eq, PartialEq)]
5#[graphql(internal, name = "__TypeKind")]
6pub enum __TypeKind {
7    /// Indicates this type is a scalar.
8    Scalar,
9
10    /// Indicates this type is an object. `fields` and `interfaces` are valid
11    /// fields.
12    Object,
13
14    /// Indicates this type is an interface. `fields` and `possibleTypes` are
15    /// valid fields.
16    Interface,
17
18    /// Indicates this type is a union. `possibleTypes` is a valid field.
19    Union,
20
21    /// Indicates this type is an enum. `enumValues` is a valid field.
22    Enum,
23
24    /// Indicates this type is an input object. `inputFields` is a valid field.
25    InputObject,
26
27    /// Indicates this type is a list. `ofType` is a valid field.
28    List,
29
30    /// Indicates this type is a non-null. `ofType` is a valid field.
31    NonNull,
32}