pub struct EnumInfo {
pub name: String,
pub doc_comment: Option<String>,
pub file_path: String,
pub line_number: usize,
pub visibility: Visibility,
pub generics: Vec<String>,
pub derives: Vec<String>,
pub attributes: Vec<String>,
pub variants: Vec<EnumVariant>,
}Expand description
Represents a parsed Rust enum with its variants and documentation.
Fields§
§name: StringThe name of the enum.
doc_comment: Option<String>Documentation comment for the enum.
file_path: StringThe file where this enum is defined.
line_number: usizeLine number where the enum starts.
visibility: VisibilityVisibility of the enum (pub, pub(crate), etc.).
generics: Vec<String>Generic parameters if any.
derives: Vec<String>Derive macros applied to this enum.
attributes: Vec<String>Other attributes on the enum.
variants: Vec<EnumVariant>Variants of the enum.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnumInfo
impl<'de> Deserialize<'de> for EnumInfo
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 EnumInfo
impl RefUnwindSafe for EnumInfo
impl Send for EnumInfo
impl Sync for EnumInfo
impl Unpin for EnumInfo
impl UnwindSafe for EnumInfo
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