pub struct DefiniteCanisterSettings {
pub controllers: Vec<Principal>,
pub compute_allocation: Nat,
pub memory_allocation: Nat,
pub freezing_threshold: Nat,
pub reserved_cycles_limit: Nat,
pub log_visibility: LogVisibility,
pub wasm_memory_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.
log_visibility: LogVisibility
Visibility of canister logs.
wasm_memory_limit: Nat
The Wasm memory 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
)