[][src]Enum juniper::meta::DeprecationStatus

pub enum DeprecationStatus {
    Current,
    Deprecated(Option<String>),
}

Whether an item is deprecated, with context.

Variants

Current

The field/variant is not deprecated.

Deprecated(Option<String>)

The field/variant is deprecated, with an optional reason

Methods

impl DeprecationStatus[src]

pub fn is_deprecated(&self) -> bool[src]

If this deprecation status indicates the item is deprecated.

pub fn reason(&self) -> Option<&String>[src]

An optional reason for the deprecation, or none if Current.

Trait Implementations

impl Clone for DeprecationStatus[src]

impl Debug for DeprecationStatus[src]

impl Hash for DeprecationStatus[src]

impl PartialEq<DeprecationStatus> for DeprecationStatus[src]

impl StructuralPartialEq for DeprecationStatus[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.