pub struct InputObjectMeta<'a, S> { /* private fields */ }
Expand description
Input object metadata
Implementations§
Source§impl<'a, S> InputObjectMeta<'a, S>
impl<'a, S> InputObjectMeta<'a, S>
Sourcepub fn new<T>(name: Cow<'a, str>, input_fields: &[Argument<'a, S>]) -> Self
pub fn new<T>(name: Cow<'a, str>, input_fields: &[Argument<'a, S>]) -> Self
Builds a new InputObjectMeta
type with the specified name
and
input_fields
.
Sourcepub fn description(self, description: &str) -> Self
pub fn description(self, description: &str) -> Self
Set the description
of this InputObjectMeta
type.
Overwrites any previously set description.
Sourcepub fn into_meta(self) -> MetaType<'a, S>
pub fn into_meta(self) -> MetaType<'a, S>
Wraps this InputObjectMeta
type into a generic MetaType
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for InputObjectMeta<'a, S>
impl<'a, S> RefUnwindSafe for InputObjectMeta<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for InputObjectMeta<'a, S>where
S: Send,
impl<'a, S> Sync for InputObjectMeta<'a, S>where
S: Sync,
impl<'a, S> Unpin for InputObjectMeta<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for InputObjectMeta<'a, S>where
S: UnwindSafe,
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