Enum ic_cdk::api::management_canister::main::CodeDeploymentMode
source · pub enum CodeDeploymentMode {
Install,
Reinstall,
Upgrade,
}
Expand description
The mode with which a canister is installed.
Variants§
Install
A fresh install of a new canister.
Reinstall
Reinstalling a canister that was already installed.
Upgrade
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 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 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
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
)