pub struct InstallCodeArgs {
pub mode: CanisterInstallMode,
pub canister_id: Principal,
pub wasm_module: Vec<u8>,
pub arg: Vec<u8>,
pub sender_canister_version: Option<u64>,
}Expand description
§Install Code Args
Argument type of install_code.
Fields§
§mode: CanisterInstallModeCanister install mode.
canister_id: PrincipalCanister ID.
wasm_module: Vec<u8>Code to be installed.
arg: Vec<u8>The argument to be passed to canister_init or canister_post_upgrade.
sender_canister_version: Option<u64>Must match the canister’s canister_version value when specified.
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<InstallCodeArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstallCodeArgs, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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