Struct async_graphql::resolver_utils::EnumItem
source · [−]pub struct EnumItem<T> {
pub name: &'static str,
pub value: T,
}
Expand description
A variant of an enum.
Fields
name: &'static str
The name of the variant.
value: T
The value of the variant.
Auto Trait Implementations
impl<T> RefUnwindSafe for EnumItem<T>where
T: RefUnwindSafe,
impl<T> Send for EnumItem<T>where
T: Send,
impl<T> Sync for EnumItem<T>where
T: Sync,
impl<T> Unpin for EnumItem<T>where
T: Unpin,
impl<T> UnwindSafe for EnumItem<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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