pub enum Type {
Scalar(Scalar),
Object(Object),
InputObject(InputObject),
Enum(Enum),
Interface(Interface),
Union(Union),
Subscription(Subscription),
Upload,
}Available on crate feature
dynamic-schema only.Expand description
A GraphQL type
Variants§
Scalar(Scalar)
Scalar
Object(Object)
Object
InputObject(InputObject)
Input object
Enum(Enum)
Enum
Interface(Interface)
Interface
Union(Union)
Union
Subscription(Subscription)
Subscription
Upload
Upload
Trait Implementations§
Source§impl From<InputObject> for Type
impl From<InputObject> for Type
Source§fn from(obj: InputObject) -> Self
fn from(obj: InputObject) -> Self
Converts to this type from the input type.
Source§impl From<Subscription> for Type
impl From<Subscription> for Type
Source§fn from(subscription: Subscription) -> Self
fn from(subscription: Subscription) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Type
impl !RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl !UnwindSafe for Type
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