Struct juniper::meta::ObjectMeta
[−]
[src]
pub struct ObjectMeta<'a> { /* fields omitted */ }
Object type metadata
Methods
impl<'a> ObjectMeta<'a>
[src]
fn new(name: &'a str, fields: &[Field<'a>]) -> ObjectMeta<'a>
Build a new object type with the specified name and fields
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.
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.
fn into_meta(self) -> MetaType<'a>
Wrap this object type in a generic meta type