pub struct SchemaInputObject<'a> {
pub name: &'a str,
pub fields: HashMap<&'a str, SchemaInputField<'a>, DefaultHashBuilder, &'a Bump>,
}Expand description
An Input Object type definition.
Inputs, such as arguments, may sometimes be nested and accept objects that must adhere to the shape of an Input Object definition. This is often used to represent more complex inputs. Reference
Fields§
§name: &'a str§fields: HashMap<&'a str, SchemaInputField<'a>, DefaultHashBuilder, &'a Bump>Implementations§
Source§impl<'a> SchemaInputObject<'a>
impl<'a> SchemaInputObject<'a>
pub fn new(ctx: &'a ASTContext, name: &'a str) -> Self
pub fn add_field(&mut self, _ctx: &'a ASTContext, field: SchemaInputField<'a>)
Trait Implementations§
Source§impl<'a> Clone for SchemaInputObject<'a>
impl<'a> Clone for SchemaInputObject<'a>
Source§fn clone(&self) -> SchemaInputObject<'a>
fn clone(&self) -> SchemaInputObject<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaInputObject<'a>
impl<'a> Debug for SchemaInputObject<'a>
Source§impl<'a> PartialEq for SchemaInputObject<'a>
impl<'a> PartialEq for SchemaInputObject<'a>
Source§fn eq(&self, other: &SchemaInputObject<'a>) -> bool
fn eq(&self, other: &SchemaInputObject<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for SchemaInputObject<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SchemaInputObject<'a>
impl<'a> !Send for SchemaInputObject<'a>
impl<'a> !Sync for SchemaInputObject<'a>
impl<'a> !UnwindSafe for SchemaInputObject<'a>
impl<'a> Freeze for SchemaInputObject<'a>
impl<'a> Unpin for SchemaInputObject<'a>
impl<'a> UnsafeUnpin for SchemaInputObject<'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