pub struct EnumMeta<'a, S> { /* private fields */ }
Expand description
Enum type metadata
Implementations
sourceimpl<'a, S> EnumMeta<'a, S> where
S: ScalarValue + 'a,
impl<'a, S> EnumMeta<'a, S> where
S: ScalarValue + 'a,
sourcepub fn new<T>(name: Cow<'a, str>, values: &[EnumValue]) -> Self where
T: FromInputValue<S>,
pub fn new<T>(name: Cow<'a, str>, values: &[EnumValue]) -> Self where
T: FromInputValue<S>,
Build a new enum type with the specified name and possible values
sourcepub fn description(self, description: &str) -> EnumMeta<'a, S>
pub fn description(self, description: &str) -> EnumMeta<'a, S>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more