Enum cynic_parser::type_system::TypeDefinition
source · pub enum TypeDefinition<'a> {
Scalar(ScalarDefinition<'a>),
Object(ObjectDefinition<'a>),
Interface(InterfaceDefinition<'a>),
Union(UnionDefinition<'a>),
Enum(EnumDefinition<'a>),
InputObject(InputObjectDefinition<'a>),
}
Variants§
Scalar(ScalarDefinition<'a>)
Object(ObjectDefinition<'a>)
Interface(InterfaceDefinition<'a>)
Union(UnionDefinition<'a>)
Enum(EnumDefinition<'a>)
InputObject(InputObjectDefinition<'a>)
Implementations§
source§impl<'a> TypeDefinition<'a>
impl<'a> TypeDefinition<'a>
pub fn name(&self) -> &'a str
pub fn directives(&self) -> impl ExactSizeIterator<Item = Directive<'a>> + 'a
Trait Implementations§
source§impl<'a> Clone for TypeDefinition<'a>
impl<'a> Clone for TypeDefinition<'a>
source§fn clone(&self) -> TypeDefinition<'a>
fn clone(&self) -> TypeDefinition<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> Copy for TypeDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeDefinition<'a>
impl<'a> RefUnwindSafe for TypeDefinition<'a>
impl<'a> Send for TypeDefinition<'a>
impl<'a> Sync for TypeDefinition<'a>
impl<'a> Unpin for TypeDefinition<'a>
impl<'a> UnwindSafe for TypeDefinition<'a>
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