Struct juniper::meta::InputObjectMeta
source · pub struct InputObjectMeta<'a, S> { /* private fields */ }
Expand description
Input object metadata
Implementations
sourceimpl<'a, S> InputObjectMeta<'a, S>where
S: ScalarValue,
impl<'a, S> InputObjectMeta<'a, S>where
S: ScalarValue,
sourcepub fn new<T: FromInputValue<S>>(
name: Cow<'a, str>,
input_fields: &[Argument<'a, S>]
) -> Selfwhere
for<'b> &'b S: ScalarRefValue<'b>,
pub fn new<T: FromInputValue<S>>(
name: Cow<'a, str>,
input_fields: &[Argument<'a, S>]
) -> Selfwhere
for<'b> &'b S: ScalarRefValue<'b>,
Build a new input type with the specified name and input fields
sourcepub fn description(self, description: &str) -> InputObjectMeta<'a, S>
pub fn description(self, description: &str) -> InputObjectMeta<'a, S>
Set the description of the type
If a description was provided prior to calling this method, it will be overwritten.
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more