pub enum GQLType {
Scalar(String),
Object(String),
List(Box<GQLType>),
NonNull(Box<GQLType>),
Enum(String),
Interface(String),
Union(String),
}Expand description
A GraphQL type reference.
Variants§
Scalar(String)
A named scalar (e.g. String, Int, Boolean, ID, Float).
Object(String)
A named object type reference.
List(Box<GQLType>)
A list wrapper ([T]).
NonNull(Box<GQLType>)
A non-null wrapper (T!).
Enum(String)
A named enum type reference.
Interface(String)
A named interface type reference.
Union(String)
A named union type reference.
Trait Implementations§
impl Eq for GQLType
impl StructuralPartialEq for GQLType
Auto Trait Implementations§
impl Freeze for GQLType
impl RefUnwindSafe for GQLType
impl Send for GQLType
impl Sync for GQLType
impl Unpin for GQLType
impl UnsafeUnpin for GQLType
impl UnwindSafe for GQLType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more