pub enum CodeDeploymentMode {
Install,
Reinstall,
Upgrade,
}๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.Expand description
The mode with which a canister is installed.
Variantsยง
Install
๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.A fresh install of a new canister.
Reinstall
๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.Reinstalling a canister that was already installed.
Upgrade
๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.Upgrade an existing canister.
Trait Implementationsยง
Sourceยงimpl CandidType for CodeDeploymentMode
impl CandidType for CodeDeploymentMode
Sourceยงimpl Clone for CodeDeploymentMode
impl Clone for CodeDeploymentMode
Sourceยงfn clone(&self) -> CodeDeploymentMode
fn clone(&self) -> CodeDeploymentMode
Returns a duplicate 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 CodeDeploymentMode
impl Debug for CodeDeploymentMode
Sourceยงimpl<'de> Deserialize<'de> for CodeDeploymentMode
impl<'de> Deserialize<'de> for CodeDeploymentMode
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 CodeDeploymentMode
impl Hash for CodeDeploymentMode
Sourceยงimpl Ord for CodeDeploymentMode
impl Ord for CodeDeploymentMode
Sourceยงfn cmp(&self, other: &CodeDeploymentMode) -> Ordering
fn cmp(&self, other: &CodeDeploymentMode) -> 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 CodeDeploymentMode
impl PartialEq for CodeDeploymentMode
Sourceยงimpl PartialOrd for CodeDeploymentMode
impl PartialOrd for CodeDeploymentMode
Sourceยงimpl Serialize for CodeDeploymentMode
impl Serialize for CodeDeploymentMode
impl Copy for CodeDeploymentMode
impl Eq for CodeDeploymentMode
impl StructuralPartialEq for CodeDeploymentMode
Auto Trait Implementationsยง
impl Freeze for CodeDeploymentMode
impl RefUnwindSafe for CodeDeploymentMode
impl Send for CodeDeploymentMode
impl Sync for CodeDeploymentMode
impl Unpin for CodeDeploymentMode
impl UnwindSafe for CodeDeploymentMode
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