pub struct InstallCodeArgument {
pub mode: CanisterInstallMode,
pub canister_id: CanisterId,
pub wasm_module: WasmModule,
pub arg: Vec<u8>,
}๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.Expand description
Argument type of install_code.
Fieldsยง
ยงmode: CanisterInstallMode๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.See CanisterInstallMode.
canister_id: CanisterId๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.Principal of the canister.
wasm_module: WasmModule๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.Code to be installed.
arg: Vec<u8>๐Deprecated since 0.18.0: The
api::management_canister::main module is deprecated. Please use the management_canister module at the crate root.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