Trait cynic::Enum

source ·
pub trait Enum: DeserializeOwned + Serialize {
    type SchemaType;
}
Expand description

A GraphQL Enum.

Note that in GraphQL these can’t contain data - they are just a set of strings.

This should be be derived on an enum with unit variants.

Required Associated Types§

source

type SchemaType

The enum in the schema that this type represents.

Implementations on Foreign Types§

source§

impl<T> Enum for Box<T>where T: Enum,

source§

impl<T> Enum for Vec<T>where T: Enum,

source§

impl<T> Enum for Option<T>where T: Enum,

Implementors§