pub enum InstallMode {
Install,
Reinstall,
Upgrade,
}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