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
)