Struct juniper::meta::UnionMeta
[−]
[src]
pub struct UnionMeta { /* fields omitted */ }
Union type metadata
Methods
impl UnionMeta
[src]
fn new(name: &str, of_types: &[Type]) -> UnionMeta
Build a new union type with the specified name and possible types
fn description(self, description: &str) -> UnionMeta
Set the description of the type
If a description was provided prior to calling this method, it will be overwritten.
fn into_meta(self) -> MetaType
Wrap this union type in a generic meta type