pub struct SerializerConfig {
pub tag_unit_variants: bool,
}
Expand description
The configuration of the serializer.
Fields§
§tag_unit_variants: bool
When set to true
, all unit variants will be serialized as tags, i.e. !Unit
instead of Unit
.
Trait Implementations§
Source§impl Clone for SerializerConfig
impl Clone for SerializerConfig
Source§fn clone(&self) -> SerializerConfig
fn clone(&self) -> SerializerConfig
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 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
impl Copy for SerializerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)