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
)