Struct ic_cdk::api::management_canister::main::InstallChunkedCodeArgument
source · pub struct InstallChunkedCodeArgument {
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.
Fields§
§mode: CanisterInstallMode
See CanisterInstallMode.
target_canister: CanisterId
Principal 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 Clone for InstallChunkedCodeArgument
impl Clone for InstallChunkedCodeArgument
source§fn clone(&self) -> InstallChunkedCodeArgument
fn clone(&self) -> InstallChunkedCodeArgument
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 InstallChunkedCodeArgument
impl Debug for InstallChunkedCodeArgument
source§impl<'de> Deserialize<'de> for InstallChunkedCodeArgument
impl<'de> Deserialize<'de> for InstallChunkedCodeArgument
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 InstallChunkedCodeArgument
impl Hash for InstallChunkedCodeArgument
source§impl Ord for InstallChunkedCodeArgument
impl Ord for InstallChunkedCodeArgument
source§fn cmp(&self, other: &InstallChunkedCodeArgument) -> Ordering
fn cmp(&self, other: &InstallChunkedCodeArgument) -> 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 PartialOrd for InstallChunkedCodeArgument
impl PartialOrd for InstallChunkedCodeArgument
impl Eq for InstallChunkedCodeArgument
impl StructuralPartialEq for InstallChunkedCodeArgument
Auto Trait Implementations§
impl Freeze for InstallChunkedCodeArgument
impl RefUnwindSafe for InstallChunkedCodeArgument
impl Send for InstallChunkedCodeArgument
impl Sync for InstallChunkedCodeArgument
impl Unpin for InstallChunkedCodeArgument
impl UnwindSafe for InstallChunkedCodeArgument
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
)