Trait cynic::Enum[][src]

pub trait Enum<TypeLock>: Sized + Serialize {
    fn select() -> SelectionSet<'static, Self, TypeLock>;
}
Expand description

A trait for GraphQL enums.

This trait is generic over some TypeLock which is used to tie an Enum definition back into it’s GraphQL enum. Generally this will be some type generated in the GQL code.

Required methods

Implementors