Struct juniper::meta::ObjectMeta [−][src]
pub struct ObjectMeta<'a, S> { /* fields omitted */ }
Expand description
Object type metadata
Implementations
impl<'a, S> ObjectMeta<'a, S> where
S: ScalarValue,
[src]
impl<'a, S> ObjectMeta<'a, S> where
S: ScalarValue,
[src]pub fn new(name: Cow<'a, str>, fields: &[Field<'a, S>]) -> Self
[src]
pub fn new(name: Cow<'a, str>, fields: &[Field<'a, S>]) -> Self
[src]Build a new object type with the specified name and fields
pub fn description(self, description: &str) -> ObjectMeta<'a, S>
[src]
pub fn description(self, description: &str) -> ObjectMeta<'a, S>
[src]Set the description for the object
If a description was provided prior to calling this method, it will be overwritten.
pub fn interfaces(self, interfaces: &[Type<'a>]) -> ObjectMeta<'a, S>
[src]
pub fn interfaces(self, interfaces: &[Type<'a>]) -> ObjectMeta<'a, S>
[src]Set the interfaces this type implements
If a list of interfaces already was provided prior to calling this method, they will be overwritten.
Trait Implementations
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for ObjectMeta<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S> Send for ObjectMeta<'a, S> where
S: Send,
S: Send,
impl<'a, S> Sync for ObjectMeta<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> Unpin for ObjectMeta<'a, S> where
S: Unpin,
S: Unpin,
impl<'a, S> UnwindSafe for ObjectMeta<'a, S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,