pub struct EnumSpec {
pub modifiers: Modifiers,
pub name: String,
pub annotations: Vec<AnnotationSpec>,
pub values: Elements,
pub fields: Vec<FieldSpec>,
pub constructors: Vec<ConstructorSpec>,
pub elements: Elements,
pub implements: Vec<ClassType>,
}Fields§
§modifiers: Modifiers§name: String§annotations: Vec<AnnotationSpec>§values: Elements§fields: Vec<FieldSpec>§constructors: Vec<ConstructorSpec>§elements: Elements§implements: Vec<ClassType>Implementations§
Trait Implementations§
Source§impl ClassLike for EnumSpec
impl ClassLike for EnumSpec
fn implements<T>(&mut self, ty: T)
fn push_annotation<A>(&mut self, annotation: A)where
A: Into<AnnotationSpec>,
fn push_field<F>(&mut self, field: F)
fn fields(&self) -> &Vec<FieldSpec>
fn push_constructor<C>(&mut self, constructor: C)where
C: Into<ConstructorSpec>,
Source§impl ContainerSpec for EnumSpec
impl ContainerSpec for EnumSpec
Auto Trait Implementations§
impl Freeze for EnumSpec
impl RefUnwindSafe for EnumSpec
impl Send for EnumSpec
impl Sync for EnumSpec
impl Unpin for EnumSpec
impl UnwindSafe for EnumSpec
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