pub struct EnumInfo {
pub name: String,
pub visibility: String,
pub variants: Vec<String>,
pub documentation: Option<String>,
}Expand description
Information about an enum definition.
Fields§
§name: StringName of the enum.
visibility: StringVisibility modifier (pub, pub(crate), private, etc.).
variants: Vec<String>List of variant names.
documentation: Option<String>Documentation comment, if present.
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