#[repr(i32)]pub enum UpgradeMode {
UpgradeOldVersions = 0,
PreserveOriginal = 1,
}Expand description
Version handling mode
Variants§
UpgradeOldVersions = 0
Automatically upgrade older versions to latest format
PreserveOriginal = 1
Keep original version and structure as-is
Trait Implementations§
Source§impl Clone for UpgradeMode
impl Clone for UpgradeMode
Source§fn clone(&self) -> UpgradeMode
fn clone(&self) -> UpgradeMode
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 UpgradeMode
Source§impl Debug for UpgradeMode
impl Debug for UpgradeMode
impl Eq for UpgradeMode
Source§impl Hash for UpgradeMode
impl Hash for UpgradeMode
Source§impl PartialEq for UpgradeMode
impl PartialEq for UpgradeMode
impl StructuralPartialEq for UpgradeMode
Auto Trait Implementations§
impl Freeze for UpgradeMode
impl RefUnwindSafe for UpgradeMode
impl Send for UpgradeMode
impl Sync for UpgradeMode
impl Unpin for UpgradeMode
impl UnsafeUnpin for UpgradeMode
impl UnwindSafe for UpgradeMode
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