pub struct EnumDef {
pub name: String,
pub doc_comment: Option<DocComment>,
pub type_params: Option<Vec<TypeParam>>,
pub members: Vec<EnumMember>,
pub annotations: Vec<Annotation>,
}Fields§
§name: String§doc_comment: Option<DocComment>§type_params: Option<Vec<TypeParam>>§members: Vec<EnumMember>§annotations: Vec<Annotation>Annotations applied to the enum (e.g., @with_label() enum Color { ... })
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnumDef
impl<'de> Deserialize<'de> for EnumDef
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 EnumDef
impl RefUnwindSafe for EnumDef
impl Send for EnumDef
impl Sync for EnumDef
impl Unpin for EnumDef
impl UnsafeUnpin for EnumDef
impl UnwindSafe for EnumDef
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