pub struct StructAttributes {
pub signature: Option<String>,
pub rename_all: Option<String>,
pub deny_unknown_fields: bool,
}Expand description
Attributes defined on structures.
Fields§
§signature: Option<String>§rename_all: Option<String>§deny_unknown_fields: boolImplementations§
Source§impl StructAttributes
impl StructAttributes
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 StructAttributes
impl Clone for StructAttributes
Source§fn clone(&self) -> StructAttributes
fn clone(&self) -> StructAttributes
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 StructAttributes
impl Debug for StructAttributes
Source§impl Default for StructAttributes
impl Default for StructAttributes
Source§fn default() -> StructAttributes
fn default() -> StructAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StructAttributes
impl RefUnwindSafe for StructAttributes
impl Send for StructAttributes
impl Sync for StructAttributes
impl Unpin for StructAttributes
impl UnwindSafe for StructAttributes
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