pub struct SerializerConfig {
pub tag_unit_variants: bool,
}Expand description
A structure for configuring the Serializer.
Fields§
§tag_unit_variants: boolWhen set to true, all unit variants will be serialized as tags, i.e. !Unit inastead of Unit.
Trait Implementations§
Source§impl Debug for SerializerConfig
impl Debug for SerializerConfig
Source§impl Default for SerializerConfig
impl Default for SerializerConfig
Source§fn default() -> SerializerConfig
fn default() -> SerializerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SerializerConfig
impl RefUnwindSafe for SerializerConfig
impl Send for SerializerConfig
impl Sync for SerializerConfig
impl Unpin for SerializerConfig
impl UnwindSafe for SerializerConfig
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