pub enum OutputType<'a> {
Object(&'a SchemaObject<'a>),
Union(&'a SchemaUnion<'a>),
Interface(&'a SchemaInterface<'a>),
Scalar(&'a SchemaScalar<'a>),
Enum(&'a SchemaEnum<'a>),
}
Expand description
An output type enum that represents all possible GraphQL definition types that a field may return.
Variants§
Object(&'a SchemaObject<'a>)
Union(&'a SchemaUnion<'a>)
Interface(&'a SchemaInterface<'a>)
Scalar(&'a SchemaScalar<'a>)
Enum(&'a SchemaEnum<'a>)
Implementations§
Source§impl<'a> OutputType<'a>
impl<'a> OutputType<'a>
pub fn name(&self) -> &str
pub fn into_schema_type(&self) -> SchemaType<'a>
Trait Implementations§
Source§impl<'a> Clone for OutputType<'a>
impl<'a> Clone for OutputType<'a>
Source§fn clone(&self) -> OutputType<'a>
fn clone(&self) -> OutputType<'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 OutputType<'a>
impl<'a> Debug for OutputType<'a>
Source§impl<'a> From<OutputType<'a>> for SchemaType<'a>
impl<'a> From<OutputType<'a>> for SchemaType<'a>
Source§fn from(type_ref: OutputType<'a>) -> Self
fn from(type_ref: OutputType<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for OutputType<'a>
impl<'a> PartialEq for OutputType<'a>
impl<'a> Copy for OutputType<'a>
impl<'a> StructuralPartialEq for OutputType<'a>
Auto Trait Implementations§
impl<'a> Freeze for OutputType<'a>
impl<'a> !RefUnwindSafe for OutputType<'a>
impl<'a> !Send for OutputType<'a>
impl<'a> !Sync for OutputType<'a>
impl<'a> Unpin for OutputType<'a>
impl<'a> !UnwindSafe for OutputType<'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