pub struct UpgradeFlags {
pub skip_pre_upgrade: Option<bool>,
pub wasm_memory_persistence: Option<WasmPersistenceMode>,
}
Expand description
Flags for canister installation with CanisterInstallMode::Upgrade
.
Fields§
§skip_pre_upgrade: Option<bool>
If set to true
, the pre_upgrade
step will be skipped during the canister upgrade
wasm_memory_persistence: Option<WasmPersistenceMode>
If set to Keep
, the WASM heap memory will be preserved instead of cleared.
Trait Implementations§
Source§impl CandidType for UpgradeFlags
impl CandidType for UpgradeFlags
Source§impl Clone for UpgradeFlags
impl Clone for UpgradeFlags
Source§fn clone(&self) -> UpgradeFlags
fn clone(&self) -> UpgradeFlags
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 UpgradeFlags
impl Debug for UpgradeFlags
Source§impl Default for UpgradeFlags
impl Default for UpgradeFlags
Source§fn default() -> UpgradeFlags
fn default() -> UpgradeFlags
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpgradeFlags
impl<'de> Deserialize<'de> for UpgradeFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for UpgradeFlags
impl Hash for UpgradeFlags
Source§impl Ord for UpgradeFlags
impl Ord for UpgradeFlags
Source§fn cmp(&self, other: &UpgradeFlags) -> Ordering
fn cmp(&self, other: &UpgradeFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UpgradeFlags
impl PartialEq for UpgradeFlags
Source§impl PartialOrd for UpgradeFlags
impl PartialOrd for UpgradeFlags
Source§impl Serialize for UpgradeFlags
impl Serialize for UpgradeFlags
impl Copy for UpgradeFlags
impl Eq for UpgradeFlags
impl StructuralPartialEq for UpgradeFlags
Auto Trait Implementations§
impl Freeze for UpgradeFlags
impl RefUnwindSafe for UpgradeFlags
impl Send for UpgradeFlags
impl Sync for UpgradeFlags
impl Unpin for UpgradeFlags
impl UnwindSafe for UpgradeFlags
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
)