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§
§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.
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