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§
sourcetype SchemaType
type SchemaType
The enum in the schema that this type represents.