pub enum OwnedSchemaType<'a> {
InputObject(SchemaInputObject<'a>),
Object(SchemaObject<'a>),
Union(SchemaUnion<'a>),
Interface(SchemaInterface<'a>),
Scalar(SchemaScalar<'a>),
Enum(SchemaEnum<'a>),
}Variants§
InputObject(SchemaInputObject<'a>)
Object(SchemaObject<'a>)
Union(SchemaUnion<'a>)
Interface(SchemaInterface<'a>)
Scalar(SchemaScalar<'a>)
Enum(SchemaEnum<'a>)
Implementations§
Source§impl<'a> OwnedSchemaType<'a>
impl<'a> OwnedSchemaType<'a>
pub fn name(&self) -> &'a str
pub fn object(&'a self) -> Option<&'a SchemaObject<'a>>
pub fn input_object(&'a self) -> Option<&'a SchemaInputObject<'a>>
pub fn interface(&'a self) -> Option<&'a SchemaInterface<'a>>
pub fn union_type(&'a self) -> Option<&'a SchemaUnion<'a>>
pub fn input_type(&'a self) -> Option<InputType<'a>>
pub fn output_type(&'a self) -> Option<OutputType<'a>>
Trait Implementations§
Source§impl<'a> Clone for OwnedSchemaType<'a>
impl<'a> Clone for OwnedSchemaType<'a>
Source§fn clone(&self) -> OwnedSchemaType<'a>
fn clone(&self) -> OwnedSchemaType<'a>
Returns a duplicate 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 moreSource§impl<'a> Debug for OwnedSchemaType<'a>
impl<'a> Debug for OwnedSchemaType<'a>
Source§impl<'a> PartialEq for OwnedSchemaType<'a>
impl<'a> PartialEq for OwnedSchemaType<'a>
impl<'a> StructuralPartialEq for OwnedSchemaType<'a>
Auto Trait Implementations§
impl<'a> Freeze for OwnedSchemaType<'a>
impl<'a> !RefUnwindSafe for OwnedSchemaType<'a>
impl<'a> !Send for OwnedSchemaType<'a>
impl<'a> !Sync for OwnedSchemaType<'a>
impl<'a> Unpin for OwnedSchemaType<'a>
impl<'a> !UnwindSafe for OwnedSchemaType<'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