Struct juniper::meta::InterfaceMeta
source · pub struct InterfaceMeta<'a, S> { /* private fields */ }
Expand description
Interface type metadata
Implementations
sourceimpl<'a, S> InterfaceMeta<'a, S>where
S: ScalarValue,
impl<'a, S> InterfaceMeta<'a, S>where
S: ScalarValue,
sourcepub fn new(name: Cow<'a, str>, fields: &[Field<'a, S>]) -> InterfaceMeta<'a, S>
pub fn new(name: Cow<'a, str>, fields: &[Field<'a, S>]) -> InterfaceMeta<'a, S>
Build a new interface type with the specified name and fields
sourcepub fn description(self, description: &str) -> InterfaceMeta<'a, S>
pub fn description(self, description: &str) -> InterfaceMeta<'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 InterfaceMeta<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for InterfaceMeta<'a, S>where
S: Send,
impl<'a, S> Sync for InterfaceMeta<'a, S>where
S: Sync,
impl<'a, S> Unpin for InterfaceMeta<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for InterfaceMeta<'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