Enum juniper::TypeKind [−][src]
pub enum TypeKind {
Scalar,
Object,
Interface,
Union,
Enum,
InputObject,
List,
NonNull,
}GraphQL type kind
The GraphQL specification defines a number of type kinds - the meta type of a type.
Variants
ScalarScalar types
Scalar types appear as the leaf nodes of GraphQL queries. Strings, numbers, and booleans are the built in types, and while it's possible to define your own, it's relatively uncommon.
ObjectObject types
The most common type to be implemented by users. Objects have fields and can implement interfaces.
InterfaceInterface types
Interface types are used to represent overlapping fields between multiple types, and can be queried for their concrete type.
UnionUnion types
Unions are similar to interfaces but can not contain any fields on their own.
EnumEnum types
Like scalars, enum types appear as the leaf nodes of GraphQL queries.
InputObjectInput objects
Represents complex values provided in queries into the system.
ListList types
Represent lists of other types. This library provides implementations for vectors and slices, but other Rust types can be extended to serve as GraphQL lists.
NonNullNon-null types
In GraphQL, nullable types are the default. By putting a ! after a
type, it becomes non-nullable.
Trait Implementations
impl Clone for TypeKind[src]
impl Clone for TypeKindfn clone(&self) -> TypeKind[src]
fn clone(&self) -> TypeKindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Eq for TypeKind[src]
impl Eq for TypeKindimpl PartialEq for TypeKind[src]
impl PartialEq for TypeKindfn eq(&self, other: &TypeKind) -> bool[src]
fn eq(&self, other: &TypeKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Debug for TypeKind[src]
impl Debug for TypeKind