Enum pot::Compatibility
source · #[non_exhaustive]pub enum Compatibility {
Full,
V4,
}
Expand description
Compatibility settings for Pot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
Serializes data that is compatible with all versions of Pot deserializers.
This format does not support Value
deserialization of
enum variants without associated data. See V5
for more
information.
V4
Serializes data in the default format
This format has a single change in how enum variants without associated
data are serialized. This change allows deserialize_any
to
unambiguously distinguish between variants with associated data and
variants without associated data.
This will be the default compatibility setting in v4.0
and later. All
versions after v3.0.1
are able to read this updated format.
Trait Implementations§
source§impl Clone for Compatibility
impl Clone for Compatibility
source§fn clone(&self) -> Compatibility
fn clone(&self) -> Compatibility
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 Compatibility
impl Debug for Compatibility
source§impl Default for Compatibility
impl Default for Compatibility
source§impl PartialEq for Compatibility
impl PartialEq for Compatibility
impl Copy for Compatibility
impl Eq for Compatibility
impl StructuralPartialEq for Compatibility
Auto Trait Implementations§
impl Freeze for Compatibility
impl RefUnwindSafe for Compatibility
impl Send for Compatibility
impl Sync for Compatibility
impl Unpin for Compatibility
impl UnwindSafe for Compatibility
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
)