pub enum InputType<'a> {
InputObject(&'a SchemaInputObject<'a>),
Scalar(&'a SchemaScalar<'a>),
Enum(&'a SchemaEnum<'a>),
}Expand description
An input type enum that represents all possible GraphQL definition types that an argument or input object field may accept.
Variants§
Implementations§
Source§impl<'a> InputType<'a>
impl<'a> InputType<'a>
pub fn name(&self) -> &str
pub fn named_type(&self) -> SchemaType<'a>
Trait Implementations§
Source§impl<'a> From<InputType<'a>> for SchemaType<'a>
impl<'a> From<InputType<'a>> for SchemaType<'a>
impl<'a> Copy for InputType<'a>
impl<'a> StructuralPartialEq for InputType<'a>
Auto Trait Implementations§
impl<'a> Freeze for InputType<'a>
impl<'a> !RefUnwindSafe for InputType<'a>
impl<'a> !Send for InputType<'a>
impl<'a> !Sync for InputType<'a>
impl<'a> Unpin for InputType<'a>
impl<'a> UnsafeUnpin for InputType<'a>
impl<'a> !UnwindSafe for InputType<'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