[][src]Trait cynic::Enum

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

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

fn select() -> SelectionSet<'static, Self, ()>

Loading content...

Implementors

Loading content...