Struct serde_pickle::ser::SerOptions [−][src]
pub struct SerOptions { /* fields omitted */ }
Expand description
Options for serializing.
Implementations
Construct with default options:
- use pickle protocol v3
- use the serde-standard Enum representation
Switch Enum serialization to the representation used up to serde-pickle 0.6.
“serde standard” representation (now default):
Variant -> 'Variant'
Variant(T) -> {'Variant': T}
Variant(T1, T2) -> {'Variant': [T1, T2]}
Variant { x: T } -> {'Variant': {'x': T}}
“compat” representation:
Variant -> ('Variant',)
Variant(T) -> ('Variant', T)
Variant(T1, T2) -> ('Variant', [T1, T2])
Variant { x: T } -> ('Variant', {'x': T})
When deserializing, serde-pickle
can handle both representations.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SerOptions
impl Send for SerOptions
impl Sync for SerOptions
impl Unpin for SerOptions
impl UnwindSafe for SerOptions
Blanket Implementations
Mutably borrows from an owned value. Read more