pub struct DefiniteCanisterSettings {
pub controllers: Vec<Principal>,
pub compute_allocation: Nat,
pub memory_allocation: Nat,
pub freezing_threshold: Nat,
pub reserved_cycles_limit: Option<Nat>,
}
Expand description
The concrete settings of a canister.
Fields§
§controllers: Vec<Principal>
The set of canister controllers. Controllers can update the canister via the management canister.
compute_allocation: Nat
The allocation percentage (between 0 and 100 inclusive) for guaranteed compute capacity.
memory_allocation: Nat
The allocation, in bytes (up to 256 TiB) that the canister is allowed to use for storage.
freezing_threshold: Nat
The IC will freeze a canister protectively if it will likely run out of cycles before this amount of time, in seconds (up to u64::MAX
), has passed.
reserved_cycles_limit: Option<Nat>
The upper limit of the canister’s reserved cycles balance.
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<'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
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