pub struct SerdeAttributes {
pub rename: Option<String>,
pub skip: bool,
pub flatten: bool,
}Expand description
Serde attributes for a field
Fields§
§rename: Option<String>Renamed field name
skip: boolWhether to skip this field during serialization
flatten: boolWhether to flatten this field
Trait Implementations§
Source§impl Clone for SerdeAttributes
impl Clone for SerdeAttributes
Source§fn clone(&self) -> SerdeAttributes
fn clone(&self) -> SerdeAttributes
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 SerdeAttributes
impl Debug for SerdeAttributes
Source§impl Default for SerdeAttributes
impl Default for SerdeAttributes
Source§fn default() -> SerdeAttributes
fn default() -> SerdeAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SerdeAttributes
impl RefUnwindSafe for SerdeAttributes
impl Send for SerdeAttributes
impl Sync for SerdeAttributes
impl Unpin for SerdeAttributes
impl UnwindSafe for SerdeAttributes
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