[][src]Trait async_graphql::GQLEnum

pub trait GQLEnum: GQLType + Sized + Eq + Send + Copy + Sized + 'static {
    fn items() -> &'static [GQLEnumItem<Self>];

    fn parse_enum(value: &Value) -> Option<Self> { ... }
fn resolve_enum(&self) -> Result<Value> { ... } }

Required methods

Loading content...

Provided methods

fn parse_enum(value: &Value) -> Option<Self>

fn resolve_enum(&self) -> Result<Value>

Loading content...

Implementors

Loading content...