pub enum EnumRepresentation {
Tag,
SingletonMap,
}Expand description
Serde enum representation used by option-aware writers.
Variants§
Tag
Emit data-carrying enum variants as YAML tags, such as !Variant value.
SingletonMap
Emit data-carrying enum variants as one-entry mappings, such as
Variant: value.
Trait Implementations§
Source§impl Clone for EnumRepresentation
impl Clone for EnumRepresentation
Source§fn clone(&self) -> EnumRepresentation
fn clone(&self) -> EnumRepresentation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EnumRepresentation
Source§impl Debug for EnumRepresentation
impl Debug for EnumRepresentation
Source§impl Default for EnumRepresentation
impl Default for EnumRepresentation
Source§fn default() -> EnumRepresentation
fn default() -> EnumRepresentation
Returns the “default value” for a type. Read more
impl Eq for EnumRepresentation
Source§impl PartialEq for EnumRepresentation
impl PartialEq for EnumRepresentation
Source§fn eq(&self, other: &EnumRepresentation) -> bool
fn eq(&self, other: &EnumRepresentation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnumRepresentation
Auto Trait Implementations§
impl Freeze for EnumRepresentation
impl RefUnwindSafe for EnumRepresentation
impl Send for EnumRepresentation
impl Sync for EnumRepresentation
impl Unpin for EnumRepresentation
impl UnsafeUnpin for EnumRepresentation
impl UnwindSafe for EnumRepresentation
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