Struct ic_cdk::api::management_canister::main::InstallCodeArgument
source · pub struct InstallCodeArgument {
pub mode: CanisterInstallMode,
pub canister_id: CanisterId,
pub wasm_module: WasmModule,
pub arg: Vec<u8>,
}Expand description
Argument type of install_code.
Fields
mode: CanisterInstallModeSee CanisterInstallMode.
canister_id: CanisterIdPrinciple of the canister.
wasm_module: WasmModuleCode to be installed.
arg: Vec<u8>The argument to be passed to canister_init or canister_post_upgrade.
Trait Implementations
sourceimpl CandidType for InstallCodeArgument
impl CandidType for InstallCodeArgument
sourceimpl Clone for InstallCodeArgument
impl Clone for InstallCodeArgument
sourcefn clone(&self) -> InstallCodeArgument
fn clone(&self) -> InstallCodeArgument
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 InstallCodeArgument
impl Debug for InstallCodeArgument
sourceimpl<'de> Deserialize<'de> for InstallCodeArgument
impl<'de> Deserialize<'de> for InstallCodeArgument
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 Hash for InstallCodeArgument
impl Hash for InstallCodeArgument
sourceimpl Ord for InstallCodeArgument
impl Ord for InstallCodeArgument
sourcefn cmp(&self, other: &InstallCodeArgument) -> Ordering
fn cmp(&self, other: &InstallCodeArgument) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<InstallCodeArgument> for InstallCodeArgument
impl PartialEq<InstallCodeArgument> for InstallCodeArgument
sourcefn eq(&self, other: &InstallCodeArgument) -> bool
fn eq(&self, other: &InstallCodeArgument) -> bool
sourceimpl PartialOrd<InstallCodeArgument> for InstallCodeArgument
impl PartialOrd<InstallCodeArgument> for InstallCodeArgument
sourcefn partial_cmp(&self, other: &InstallCodeArgument) -> Option<Ordering>
fn partial_cmp(&self, other: &InstallCodeArgument) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for InstallCodeArgument
impl Serialize for InstallCodeArgument
impl Eq for InstallCodeArgument
impl StructuralEq for InstallCodeArgument
impl StructuralPartialEq for InstallCodeArgument
Auto Trait Implementations
impl RefUnwindSafe for InstallCodeArgument
impl Send for InstallCodeArgument
impl Sync for InstallCodeArgument
impl Unpin for InstallCodeArgument
impl UnwindSafe for InstallCodeArgument
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