pub struct Upgrade {
pub initial_version: u8,
pub updated_version: u8,
pub process: WrappedUpgradeFunc,
}
Expand description
Upgrade defines an upgrade process for upgrading the data in a file from one version to another.
Fields§
§initial_version: u8
initial_version designates the version of the file that this upgrade should be applied to.
updated_version: u8
updated_version designates the version of the file after the upgrade is complete.
process: WrappedUpgradeFunc
process defines the function that is used to upgrade the file.
Auto Trait Implementations§
impl Freeze for Upgrade
impl !RefUnwindSafe for Upgrade
impl !Send for Upgrade
impl !Sync for Upgrade
impl Unpin for Upgrade
impl !UnwindSafe for Upgrade
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