Struct juniper::meta::EnumMeta [−][src]
pub struct EnumMeta<'a, S> { /* fields omitted */ }
Expand description
Enum type metadata
Implementations
impl<'a, S> EnumMeta<'a, S> where
S: ScalarValue + 'a,
[src]
impl<'a, S> EnumMeta<'a, S> where
S: ScalarValue + 'a,
[src]pub fn new<T>(name: Cow<'a, str>, values: &[EnumValue]) -> Self where
T: FromInputValue<S>,
[src]
pub fn new<T>(name: Cow<'a, str>, values: &[EnumValue]) -> Self where
T: FromInputValue<S>,
[src]Build a new enum type with the specified name and possible values
pub fn description(self, description: &str) -> EnumMeta<'a, S>
[src]
pub fn description(self, description: &str) -> EnumMeta<'a, S>
[src]Set the description of the type
If a description was provided prior to calling this method, it will be overwritten
Trait Implementations
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for EnumMeta<'a, S>
impl<'a, S> Send for EnumMeta<'a, S>
impl<'a, S> Sync for EnumMeta<'a, S>
impl<'a, S> Unpin for EnumMeta<'a, S>
impl<'a, S> UnwindSafe for EnumMeta<'a, S>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,