Struct ic_cdk::api::management_canister::main::DefiniteCanisterSettings
source · pub struct DefiniteCanisterSettings {
pub controllers: Vec<Principal>,
pub compute_allocation: Nat,
pub memory_allocation: Nat,
pub freezing_threshold: Nat,
pub reserved_cycles_limit: Nat,
}
Expand description
Like CanisterSettings.
Fields§
§controllers: Vec<Principal>
Controllers of the canister.
compute_allocation: Nat
Compute allocation.
memory_allocation: Nat
Memory allocation.
freezing_threshold: Nat
Freezing threshold.
reserved_cycles_limit: Nat
Reserved cycles limit.
Trait Implementations§
source§impl Clone for DefiniteCanisterSettings
impl Clone for DefiniteCanisterSettings
source§fn clone(&self) -> DefiniteCanisterSettings
fn clone(&self) -> DefiniteCanisterSettings
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 DefiniteCanisterSettings
impl Debug for DefiniteCanisterSettings
source§impl Default for DefiniteCanisterSettings
impl Default for DefiniteCanisterSettings
source§fn default() -> DefiniteCanisterSettings
fn default() -> DefiniteCanisterSettings
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DefiniteCanisterSettings
impl<'de> Deserialize<'de> for DefiniteCanisterSettings
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 DefiniteCanisterSettings
impl Hash for DefiniteCanisterSettings
source§impl Ord for DefiniteCanisterSettings
impl Ord for DefiniteCanisterSettings
source§fn cmp(&self, other: &DefiniteCanisterSettings) -> Ordering
fn cmp(&self, other: &DefiniteCanisterSettings) -> 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 DefiniteCanisterSettings
impl PartialEq for DefiniteCanisterSettings
source§impl PartialOrd for DefiniteCanisterSettings
impl PartialOrd for DefiniteCanisterSettings
source§impl Serialize for DefiniteCanisterSettings
impl Serialize for DefiniteCanisterSettings
impl Eq for DefiniteCanisterSettings
impl StructuralPartialEq for DefiniteCanisterSettings
Auto Trait Implementations§
impl Freeze for DefiniteCanisterSettings
impl RefUnwindSafe for DefiniteCanisterSettings
impl Send for DefiniteCanisterSettings
impl Sync for DefiniteCanisterSettings
impl Unpin for DefiniteCanisterSettings
impl UnwindSafe for DefiniteCanisterSettings
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
)