pub enum EnumMemberKind {
Unit {
value: Option<EnumValue>,
},
Tuple(Vec<TypeAnnotation>),
Struct(Vec<ObjectTypeField>),
}Variants§
Unit
Unit variant: Variant or Variant = 1
Tuple(Vec<TypeAnnotation>)
Tuple variant: Variant(Type, Type)
Struct(Vec<ObjectTypeField>)
Struct variant: Variant { field: Type, … }
Trait Implementations§
Source§impl Clone for EnumMemberKind
impl Clone for EnumMemberKind
Source§fn clone(&self) -> EnumMemberKind
fn clone(&self) -> EnumMemberKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnumMemberKind
impl Debug for EnumMemberKind
Source§impl<'de> Deserialize<'de> for EnumMemberKind
impl<'de> Deserialize<'de> for EnumMemberKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnumMemberKind
impl RefUnwindSafe for EnumMemberKind
impl Send for EnumMemberKind
impl Sync for EnumMemberKind
impl Unpin for EnumMemberKind
impl UnsafeUnpin for EnumMemberKind
impl UnwindSafe for EnumMemberKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more