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) -> Iter<'a, Directive<'a>> ⓘ
pub fn span(&self) -> Span
pub fn description(&self) -> Option<Description<'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