pub struct TypeAttributes {
pub rename: Option<String>,
pub rename_all: Option<RenameRuleValue>,
pub other: BTreeMap<String, String>,
}
Expand description
Serde attributes applicable at the type level (struct/enum).
Fields§
§rename: Option<String>
§rename_all: Option<RenameRuleValue>
§other: BTreeMap<String, String>
Trait Implementations§
Source§impl Clone for TypeAttributes
impl Clone for TypeAttributes
Source§fn clone(&self) -> TypeAttributes
fn clone(&self) -> TypeAttributes
Returns a copy 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 TypeAttributes
impl Debug for TypeAttributes
Source§impl Default for TypeAttributes
impl Default for TypeAttributes
Source§fn default() -> TypeAttributes
fn default() -> TypeAttributes
Returns the “default value” for a type. Read more
Source§impl PartialEq for TypeAttributes
impl PartialEq for TypeAttributes
impl StructuralPartialEq for TypeAttributes
Auto Trait Implementations§
impl Freeze for TypeAttributes
impl RefUnwindSafe for TypeAttributes
impl Send for TypeAttributes
impl Sync for TypeAttributes
impl Unpin for TypeAttributes
impl UnwindSafe for TypeAttributes
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