Struct juniper::meta::EnumMeta
[−]
[src]
pub struct EnumMeta<'a> { /* fields omitted */ }
Enum type metadata
Methods
impl<'a> EnumMeta<'a>
[src]
fn new<T: FromInputValue>(name: &'a str, values: &[EnumValue]) -> EnumMeta<'a>
Build a new enum type with the specified name and possible values
fn description(self, description: &str) -> EnumMeta<'a>
Set the description of the type
If a description was provided prior to calling this method, it will be overwritten
fn into_meta(self) -> MetaType<'a>
Wrap this enum type in a generic meta type