Enum graphql_tools::static_graphql::schema::TypeDefinition
source · [−]pub enum TypeDefinition<'a, T> where
T: Text<'a>, {
Scalar(ScalarType<'a, T>),
Object(ObjectType<'a, T>),
Interface(InterfaceType<'a, T>),
Union(UnionType<'a, T>),
Enum(EnumType<'a, T>),
InputObject(InputObjectType<'a, T>),
}
Variants
Scalar(ScalarType<'a, T>)
Object(ObjectType<'a, T>)
Interface(InterfaceType<'a, T>)
Union(UnionType<'a, T>)
Enum(EnumType<'a, T>)
InputObject(InputObjectType<'a, T>)
Trait Implementations
sourceimpl<'a, T> Clone for TypeDefinition<'a, T> where
T: Clone + Text<'a>,
impl<'a, T> Clone for TypeDefinition<'a, T> where
T: Clone + Text<'a>,
sourcefn clone(&self) -> TypeDefinition<'a, T>
fn clone(&self) -> TypeDefinition<'a, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, T> Debug for TypeDefinition<'a, T> where
T: Debug + Text<'a>,
impl<'a, T> Debug for TypeDefinition<'a, T> where
T: Debug + Text<'a>,
sourceimpl<'a, T> Display for TypeDefinition<'a, T> where
T: Text<'a>,
impl<'a, T> Display for TypeDefinition<'a, T> where
T: Text<'a>,
sourceimpl<'a, T> PartialEq<TypeDefinition<'a, T>> for TypeDefinition<'a, T> where
T: PartialEq<T> + Text<'a>,
impl<'a, T> PartialEq<TypeDefinition<'a, T>> for TypeDefinition<'a, T> where
T: PartialEq<T> + Text<'a>,
sourcefn eq(&self, other: &TypeDefinition<'a, T>) -> bool
fn eq(&self, other: &TypeDefinition<'a, T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TypeDefinition<'a, T>) -> bool
fn ne(&self, other: &TypeDefinition<'a, T>) -> bool
This method tests for !=
.
impl<'a, T> StructuralPartialEq for TypeDefinition<'a, T> where
T: Text<'a>,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for TypeDefinition<'a, T> where
<T as Text<'a>>::Value: RefUnwindSafe,
impl<'a, T> Send for TypeDefinition<'a, T> where
<T as Text<'a>>::Value: Send,
impl<'a, T> Sync for TypeDefinition<'a, T> where
<T as Text<'a>>::Value: Sync,
impl<'a, T> Unpin for TypeDefinition<'a, T> where
<T as Text<'a>>::Value: Unpin,
impl<'a, T> UnwindSafe for TypeDefinition<'a, T> where
<T as Text<'a>>::Value: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more