pub struct Enum<'a> {
pub name: &'a str,
pub namespace: Option<&'a str>,
pub doc: Option<&'a str>,
pub aliases: Vec<&'a str>,
pub symbols: Vec<&'a str>,
pub default: Option<&'a str>,
pub attributes: Attributes<'a>,
}
Expand description
An enumeration
Fields§
§name: &'a str
§namespace: Option<&'a str>
§doc: Option<&'a str>
§aliases: Vec<&'a str>
§symbols: Vec<&'a str>
§default: Option<&'a str>
§attributes: Attributes<'a>
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Enum<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Enum<'a>
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
impl<'a> Eq for Enum<'a>
impl<'a> StructuralPartialEq for Enum<'a>
Auto Trait Implementations§
impl<'a> Freeze for Enum<'a>
impl<'a> RefUnwindSafe for Enum<'a>
impl<'a> Send for Enum<'a>
impl<'a> Sync for Enum<'a>
impl<'a> Unpin for Enum<'a>
impl<'a> UnwindSafe for Enum<'a>
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