pub enum InstallMode {
Install,
Reinstall,
Upgrade {
skip_pre_upgrade: Option<bool>,
},
}
Expand description
The install mode of the canister to install. If a canister is already installed, using InstallMode::Install will be an error. InstallMode::Reinstall overwrites the module, and InstallMode::Upgrade performs an Upgrade step.
Variants§
Install
Install the module into the empty canister.
Reinstall
Overwrite the canister with this module.
Upgrade
Upgrade the canister with this module.
Trait Implementations§
source§impl CandidType for InstallMode
impl CandidType for InstallMode
source§impl Clone for InstallMode
impl Clone for InstallMode
source§fn clone(&self) -> InstallMode
fn clone(&self) -> InstallMode
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 InstallMode
impl Debug for InstallMode
source§impl<'de> Deserialize<'de> for InstallMode
impl<'de> Deserialize<'de> for InstallMode
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 FromStr for InstallMode
impl FromStr for InstallMode
source§impl PartialEq for InstallMode
impl PartialEq for InstallMode
source§fn eq(&self, other: &InstallMode) -> bool
fn eq(&self, other: &InstallMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InstallMode
impl Eq for InstallMode
impl StructuralPartialEq for InstallMode
Auto Trait Implementations§
impl Freeze for InstallMode
impl RefUnwindSafe for InstallMode
impl Send for InstallMode
impl Sync for InstallMode
impl Unpin for InstallMode
impl UnwindSafe for InstallMode
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