pub struct InstallChunkedCodeArgs {
pub mode: CanisterInstallMode,
pub target_canister: CanisterId,
pub store_canister: Option<CanisterId>,
pub chunk_hashes_list: Vec<ChunkHash>,
pub wasm_module_hash: Vec<u8>,
pub arg: Vec<u8>,
}Expand description
Argument type of install_chunked_code.
§Note
This type is a reduced version of ic_management_canister_types::InstallChunkedCodeArgs.
The sender_canister_version field is removed as it is set automatically in install_chunked_code.
Fields§
§mode: CanisterInstallModeSee CanisterInstallMode.
target_canister: CanisterIdPrincipal of the canister being installed.
store_canister: Option<CanisterId>The canister in whose chunk storage the chunks are stored (defaults to target_canister if not specified).
chunk_hashes_list: Vec<ChunkHash>The list of chunks that make up the canister wasm.
wasm_module_hash: Vec<u8>The sha256 hash of the wasm.
arg: Vec<u8>The argument to be passed to canister_init or canister_post_upgrade.
Trait Implementations§
Source§impl CandidType for InstallChunkedCodeArgs
impl CandidType for InstallChunkedCodeArgs
Source§impl Clone for InstallChunkedCodeArgs
impl Clone for InstallChunkedCodeArgs
Source§fn clone(&self) -> InstallChunkedCodeArgs
fn clone(&self) -> InstallChunkedCodeArgs
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 InstallChunkedCodeArgs
impl Debug for InstallChunkedCodeArgs
Source§impl<'de> Deserialize<'de> for InstallChunkedCodeArgs
impl<'de> Deserialize<'de> for InstallChunkedCodeArgs
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 InstallChunkedCodeArgs
impl Hash for InstallChunkedCodeArgs
Source§impl Ord for InstallChunkedCodeArgs
impl Ord for InstallChunkedCodeArgs
Source§fn cmp(&self, other: &InstallChunkedCodeArgs) -> Ordering
fn cmp(&self, other: &InstallChunkedCodeArgs) -> 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 InstallChunkedCodeArgs
impl PartialEq for InstallChunkedCodeArgs
Source§impl PartialOrd for InstallChunkedCodeArgs
impl PartialOrd for InstallChunkedCodeArgs
Source§impl Serialize for InstallChunkedCodeArgs
impl Serialize for InstallChunkedCodeArgs
impl Eq for InstallChunkedCodeArgs
impl StructuralPartialEq for InstallChunkedCodeArgs
Auto Trait Implementations§
impl Freeze for InstallChunkedCodeArgs
impl RefUnwindSafe for InstallChunkedCodeArgs
impl Send for InstallChunkedCodeArgs
impl Sync for InstallChunkedCodeArgs
impl Unpin for InstallChunkedCodeArgs
impl UnwindSafe for InstallChunkedCodeArgs
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