pub struct EnumAttributes {
pub signature: Option<String>,
pub rename_all: Option<String>,
}Expand description
Attributes defined on enumerations.
Fields§
§signature: Option<String>§rename_all: Option<String>Implementations§
Source§impl EnumAttributes
impl EnumAttributes
pub fn parse_meta(&mut self, meta: &Meta) -> Result<()>
pub fn parse_nested_metas<I>(iter: I) -> Result<Self>where
I: IntoIterator<Item = Meta>,
pub fn parse(attrs: &[Attribute]) -> Result<Self>
Trait Implementations§
Source§impl Clone for EnumAttributes
impl Clone for EnumAttributes
Source§fn clone(&self) -> EnumAttributes
fn clone(&self) -> EnumAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnumAttributes
impl Debug for EnumAttributes
Source§impl Default for EnumAttributes
impl Default for EnumAttributes
Source§fn default() -> EnumAttributes
fn default() -> EnumAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnumAttributes
impl RefUnwindSafe for EnumAttributes
impl Send for EnumAttributes
impl Sync for EnumAttributes
impl Unpin for EnumAttributes
impl UnwindSafe for EnumAttributes
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