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: CanisterInstallMode
See CanisterInstallMode.
canister_id: CanisterId
Principal of the canister.
wasm_module: WasmModule
Code to be installed.
arg: Vec<u8>
The argument to be passed to canister_init
or canister_post_upgrade
.
Trait Implementations§
source§impl CandidType for InstallCodeArgument
impl CandidType for InstallCodeArgument
source§impl Clone for InstallCodeArgument
impl Clone for InstallCodeArgument
source§fn clone(&self) -> InstallCodeArgument
fn clone(&self) -> InstallCodeArgument
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 InstallCodeArgument
impl Debug for InstallCodeArgument
source§impl<'de> Deserialize<'de> for InstallCodeArgument
impl<'de> Deserialize<'de> for InstallCodeArgument
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 InstallCodeArgument
impl Hash for InstallCodeArgument
source§impl Ord for InstallCodeArgument
impl Ord for InstallCodeArgument
source§fn cmp(&self, other: &InstallCodeArgument) -> Ordering
fn cmp(&self, other: &InstallCodeArgument) -> 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 InstallCodeArgument
impl PartialEq for InstallCodeArgument
source§impl PartialOrd for InstallCodeArgument
impl PartialOrd for InstallCodeArgument
source§impl Serialize for InstallCodeArgument
impl Serialize for InstallCodeArgument
impl Eq for InstallCodeArgument
impl StructuralPartialEq for InstallCodeArgument
Auto Trait Implementations§
impl Freeze for InstallCodeArgument
impl RefUnwindSafe for InstallCodeArgument
impl Send for InstallCodeArgument
impl Sync for InstallCodeArgument
impl Unpin for InstallCodeArgument
impl UnwindSafe for InstallCodeArgument
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
)