Struct juniper::meta::ObjectMeta [−][src]
pub struct ObjectMeta<'a> { /* fields omitted */ }Object type metadata
Methods
impl<'a> ObjectMeta<'a>[src]
impl<'a> ObjectMeta<'a>pub fn new(name: Cow<'a, str>, fields: &[Field<'a>]) -> ObjectMeta<'a>[src]
pub fn new(name: Cow<'a, str>, fields: &[Field<'a>]) -> ObjectMeta<'a>Build a new object type with the specified name and fields
pub fn description(self, description: &str) -> ObjectMeta<'a>[src]
pub fn description(self, description: &str) -> ObjectMeta<'a>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>[src]
pub fn interfaces(self, interfaces: &[Type<'a>]) -> ObjectMeta<'a>Set the interfaces this type implements
If a list of interfaces already was provided prior to calling this method, they will be overwritten.
pub fn into_meta(self) -> MetaType<'a>[src]
pub fn into_meta(self) -> MetaType<'a>Wrap this object type in a generic meta type
Trait Implementations
impl<'a> Debug for ObjectMeta<'a>[src]
impl<'a> Debug for ObjectMeta<'a>Auto Trait Implementations
impl<'a> Send for ObjectMeta<'a>
impl<'a> Send for ObjectMeta<'a>impl<'a> Sync for ObjectMeta<'a>
impl<'a> Sync for ObjectMeta<'a>