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
sourceimpl CandidType for InstallMode
impl CandidType for InstallMode
sourceimpl Clone for InstallMode
impl Clone for InstallMode
sourcefn clone(&self) -> InstallMode
fn clone(&self) -> InstallMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for InstallMode
impl Debug for InstallMode
sourceimpl<'de> Deserialize<'de> for InstallMode
impl<'de> Deserialize<'de> for InstallMode
sourcefn 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
sourceimpl FromStr for InstallMode
impl FromStr for InstallMode
sourceimpl PartialEq<InstallMode> for InstallMode
impl PartialEq<InstallMode> for InstallMode
sourcefn eq(&self, other: &InstallMode) -> bool
fn eq(&self, other: &InstallMode) -> bool
impl Copy for InstallMode
impl Eq for InstallMode
impl StructuralEq for InstallMode
impl StructuralPartialEq for InstallMode
Auto Trait Implementations
impl RefUnwindSafe for InstallMode
impl Send for InstallMode
impl Sync for InstallMode
impl Unpin for InstallMode
impl UnwindSafe for InstallMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more