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