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