#[non_exhaustive]pub struct InstallSpec {
pub wasm: Vec<u8>,
pub init_bytes: Vec<u8>,
pub cycles: u128,
pub install_sender: Option<Principal>,
pub label: Option<String>,
}Expand description
Inputs and diagnostic context for one generic canister installation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.wasm: Vec<u8>Wasm module installed into the newly created canister.
init_bytes: Vec<u8>Raw Candid or application-specific initialization bytes.
cycles: u128Extra cycles added after PocketIC creates the canister and before install.
install_sender: Option<Principal>Optional sender for the management-canister install operation.
label: Option<String>Optional human-readable context included in install errors.
Implementations§
Auto Trait Implementations§
impl Freeze for InstallSpec
impl RefUnwindSafe for InstallSpec
impl Send for InstallSpec
impl Sync for InstallSpec
impl Unpin for InstallSpec
impl UnsafeUnpin for InstallSpec
impl UnwindSafe for InstallSpec
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