pub struct ContainerAttributes {
pub rename: Option<RenameRule>,
pub rename_all: Option<RenameRule>,
pub tag: Option<&'static str>,
pub content: Option<&'static str>,
}
Expand description
The keys and associated values present in the attribute on a top-level type.
Fields§
§rename: Option<RenameRule>
A rename
attribute, signifying that the type itself should be renamed.
rename_all: Option<RenameRule>
A rename
attribute, signifying that the fields should be renamed.
tag: Option<&'static str>
A tag
attribute, signifying that the name of enum variants
should be reflected in a separate field of the given name.
content: Option<&'static str>
A content
attribute, signifying that the content of enum variants
should be reflected in a separate field of the given name.
Trait Implementations§
Source§impl Clone for ContainerAttributes
impl Clone for ContainerAttributes
Source§fn clone(&self) -> ContainerAttributes
fn clone(&self) -> ContainerAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContainerAttributes
impl Debug for ContainerAttributes
Source§impl Default for ContainerAttributes
impl Default for ContainerAttributes
Source§fn default() -> ContainerAttributes
fn default() -> ContainerAttributes
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContainerAttributes
impl PartialEq for ContainerAttributes
impl StructuralPartialEq for ContainerAttributes
Auto Trait Implementations§
impl Freeze for ContainerAttributes
impl RefUnwindSafe for ContainerAttributes
impl Send for ContainerAttributes
impl Sync for ContainerAttributes
impl Unpin for ContainerAttributes
impl UnwindSafe for ContainerAttributes
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