Struct juniper::meta::EnumMeta [−][src]
pub struct EnumMeta<'a> { /* fields omitted */ }
Enum type metadata
Methods
impl<'a> EnumMeta<'a>
[src]
impl<'a> EnumMeta<'a>
pub fn new<T: FromInputValue>(
name: Cow<'a, str>,
values: &[EnumValue]
) -> EnumMeta<'a>
[src]
pub fn new<T: FromInputValue>(
name: Cow<'a, str>,
values: &[EnumValue]
) -> EnumMeta<'a>
Build a new enum type with the specified name and possible values
pub fn description(self, description: &str) -> EnumMeta<'a>
[src]
pub 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
pub fn into_meta(self) -> MetaType<'a>
[src]
pub fn into_meta(self) -> MetaType<'a>
Wrap this enum type in a generic meta type