[][src]Struct juniper::meta::UnionMeta

pub struct UnionMeta<'a> { /* fields omitted */ }

Union type metadata

Methods

impl<'a> UnionMeta<'a>[src]

pub fn new(name: Cow<'a, str>, of_types: &[Type]) -> UnionMeta<'a>[src]

Build a new union type with the specified name and possible types

pub fn description(self, description: &str) -> UnionMeta<'a>[src]

Set the description of the type

If a description was provided prior to calling this method, it will be overwritten.

pub fn into_meta<S>(self) -> MetaType<'a, S>[src]

Wrap this union type in a generic meta type

Trait Implementations

impl<'a> Debug for UnionMeta<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for UnionMeta<'a>

impl<'a> Send for UnionMeta<'a>

impl<'a> Sync for UnionMeta<'a>

impl<'a> Unpin for UnionMeta<'a>

impl<'a> UnwindSafe for UnionMeta<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.