pub struct CreateCanisterParams {
pub cycles: Option<u128>,
pub settings: Option<CanisterSettings>,
pub placement: Option<CreateCanisterPlacement>,
}Expand description
Parameters for PocketIc::create_canister_with_params.
Fields§
§cycles: Option<u128>Initial cycles balance; defaults to 100T if None.
settings: Option<CanisterSettings>Canister settings; defaults to default canister settings if None.
placement: Option<CreateCanisterPlacement>Canister placement (subnet or specific canister ID); a random application subnet is chosen if None.
Trait Implementations§
Source§impl Clone for CreateCanisterParams
impl Clone for CreateCanisterParams
Source§fn clone(&self) -> CreateCanisterParams
fn clone(&self) -> CreateCanisterParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateCanisterParams
impl Debug for CreateCanisterParams
Source§impl Default for CreateCanisterParams
impl Default for CreateCanisterParams
Source§fn default() -> CreateCanisterParams
fn default() -> CreateCanisterParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateCanisterParams
impl RefUnwindSafe for CreateCanisterParams
impl Send for CreateCanisterParams
impl Sync for CreateCanisterParams
impl Unpin for CreateCanisterParams
impl UnsafeUnpin for CreateCanisterParams
impl UnwindSafe for CreateCanisterParams
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