pub struct InstallCodeArgs {
pub mode: CanisterInstallMode,
pub canister_id: CanisterId,
pub wasm_module: WasmModule,
pub arg: Vec<u8>,
}Expand description
Argument type of install_code.
§Note
This type is a reduced version of ic_management_canister_types::InstallCodeArgs.
The sender_canister_version field is removed as it is set automatically in install_code.
Fields§
§mode: CanisterInstallModeSee CanisterInstallMode.
canister_id: CanisterIdCanister ID.
wasm_module: WasmModuleCode to be installed.
arg: Vec<u8>The argument to be passed to canister_init or canister_post_upgrade.
Trait Implementations§
Source§impl CandidType for InstallCodeArgs
impl CandidType for InstallCodeArgs
Source§impl Clone for InstallCodeArgs
impl Clone for InstallCodeArgs
Source§fn clone(&self) -> InstallCodeArgs
fn clone(&self) -> InstallCodeArgs
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 InstallCodeArgs
impl Debug for InstallCodeArgs
Source§impl<'de> Deserialize<'de> for InstallCodeArgs
impl<'de> Deserialize<'de> for InstallCodeArgs
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 InstallCodeArgs
impl Hash for InstallCodeArgs
Source§impl Ord for InstallCodeArgs
impl Ord for InstallCodeArgs
Source§fn cmp(&self, other: &InstallCodeArgs) -> Ordering
fn cmp(&self, other: &InstallCodeArgs) -> 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 InstallCodeArgs
impl PartialEq for InstallCodeArgs
Source§impl PartialOrd for InstallCodeArgs
impl PartialOrd for InstallCodeArgs
Source§impl Serialize for InstallCodeArgs
impl Serialize for InstallCodeArgs
impl Eq for InstallCodeArgs
impl StructuralPartialEq for InstallCodeArgs
Auto Trait Implementations§
impl Freeze for InstallCodeArgs
impl RefUnwindSafe for InstallCodeArgs
impl Send for InstallCodeArgs
impl Sync for InstallCodeArgs
impl Unpin for InstallCodeArgs
impl UnwindSafe for InstallCodeArgs
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