Struct async_graphql::resolver_utils::EnumItem [−][src]
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> UnwindSafe for EnumItem<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more