pub struct ProvisionalCreateCanisterWithCyclesArgument {
pub amount: Option<Nat>,
pub settings: Option<CanisterSettings>,
}
Expand description
Argument type of provisional_create_canister_with_cycles.
Fields§
§amount: Option<Nat>
The created canister will have this amount of cycles.
settings: Option<CanisterSettings>
See CanisterSettings.
Trait Implementations§
Source§impl Clone for ProvisionalCreateCanisterWithCyclesArgument
impl Clone for ProvisionalCreateCanisterWithCyclesArgument
Source§fn clone(&self) -> ProvisionalCreateCanisterWithCyclesArgument
fn clone(&self) -> ProvisionalCreateCanisterWithCyclesArgument
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 Default for ProvisionalCreateCanisterWithCyclesArgument
impl Default for ProvisionalCreateCanisterWithCyclesArgument
Source§fn default() -> ProvisionalCreateCanisterWithCyclesArgument
fn default() -> ProvisionalCreateCanisterWithCyclesArgument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProvisionalCreateCanisterWithCyclesArgument
impl<'de> Deserialize<'de> for ProvisionalCreateCanisterWithCyclesArgument
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 Ord for ProvisionalCreateCanisterWithCyclesArgument
impl Ord for ProvisionalCreateCanisterWithCyclesArgument
Source§fn cmp(&self, other: &ProvisionalCreateCanisterWithCyclesArgument) -> Ordering
fn cmp(&self, other: &ProvisionalCreateCanisterWithCyclesArgument) -> 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 ProvisionalCreateCanisterWithCyclesArgument
impl PartialEq for ProvisionalCreateCanisterWithCyclesArgument
Source§fn eq(&self, other: &ProvisionalCreateCanisterWithCyclesArgument) -> bool
fn eq(&self, other: &ProvisionalCreateCanisterWithCyclesArgument) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for ProvisionalCreateCanisterWithCyclesArgument
impl PartialOrd for ProvisionalCreateCanisterWithCyclesArgument
impl Eq for ProvisionalCreateCanisterWithCyclesArgument
impl StructuralPartialEq for ProvisionalCreateCanisterWithCyclesArgument
Auto Trait Implementations§
impl Freeze for ProvisionalCreateCanisterWithCyclesArgument
impl RefUnwindSafe for ProvisionalCreateCanisterWithCyclesArgument
impl Send for ProvisionalCreateCanisterWithCyclesArgument
impl Sync for ProvisionalCreateCanisterWithCyclesArgument
impl Unpin for ProvisionalCreateCanisterWithCyclesArgument
impl UnwindSafe for ProvisionalCreateCanisterWithCyclesArgument
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
)