pub struct SerdeContainer {
pub rename: Option<String>,
pub rename_all: Option<Inflection>,
pub rename_all_fields: Option<Inflection>,
pub tag: Option<String>,
pub content: Option<String>,
pub untagged: bool,
pub transparent: bool,
}Expand description
Serde attributes parsed from a container (struct or enum).
Fields§
§rename: Option<String>§rename_all: Option<Inflection>§rename_all_fields: Option<Inflection>§tag: Option<String>§content: Option<String>§untagged: bool§transparent: boolImplementations§
Trait Implementations§
Source§impl Clone for SerdeContainer
impl Clone for SerdeContainer
Source§fn clone(&self) -> SerdeContainer
fn clone(&self) -> SerdeContainer
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 SerdeContainer
impl Debug for SerdeContainer
Source§impl Default for SerdeContainer
impl Default for SerdeContainer
Source§fn default() -> SerdeContainer
fn default() -> SerdeContainer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SerdeContainer
impl RefUnwindSafe for SerdeContainer
impl Send for SerdeContainer
impl Sync for SerdeContainer
impl Unpin for SerdeContainer
impl UnsafeUnpin for SerdeContainer
impl UnwindSafe for SerdeContainer
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