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 strThe name of the variant.
value: TThe 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
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> VAttaches 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