Struct ic_cdk::api::management_canister::main::CanisterStatusResponse
source · pub struct CanisterStatusResponse {
pub status: CanisterStatusType,
pub settings: DefiniteCanisterSettings,
pub module_hash: Option<Vec<u8>>,
pub memory_size: Nat,
pub cycles: Nat,
pub idle_cycles_burned_per_day: Nat,
pub query_stats: QueryStats,
pub reserved_cycles: Nat,
}
Expand description
Return type of canister_status.
Fields§
§status: CanisterStatusType
See CanisterStatusType.
settings: DefiniteCanisterSettings
§module_hash: Option<Vec<u8>>
A SHA256 hash of the module installed on the canister. This is null if the canister is empty.
memory_size: Nat
The memory size taken by the canister.
cycles: Nat
The cycle balance of the canister.
idle_cycles_burned_per_day: Nat
Amount of cycles burned per day.
query_stats: QueryStats
Query statistics
reserved_cycles: Nat
The reserved cycles balance of the canister.
These are cycles that are reserved by the resource reservation mechanism
on storage allocation. See also the reserved_cycles_limit
parameter in
canister settings.
Trait Implementations§
source§impl CandidType for CanisterStatusResponse
impl CandidType for CanisterStatusResponse
source§impl Clone for CanisterStatusResponse
impl Clone for CanisterStatusResponse
source§fn clone(&self) -> CanisterStatusResponse
fn clone(&self) -> CanisterStatusResponse
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 CanisterStatusResponse
impl Debug for CanisterStatusResponse
source§impl<'de> Deserialize<'de> for CanisterStatusResponse
impl<'de> Deserialize<'de> for CanisterStatusResponse
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 CanisterStatusResponse
impl Hash for CanisterStatusResponse
source§impl Ord for CanisterStatusResponse
impl Ord for CanisterStatusResponse
source§fn cmp(&self, other: &CanisterStatusResponse) -> Ordering
fn cmp(&self, other: &CanisterStatusResponse) -> 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 CanisterStatusResponse
impl PartialEq for CanisterStatusResponse
source§impl PartialOrd for CanisterStatusResponse
impl PartialOrd for CanisterStatusResponse
source§impl Serialize for CanisterStatusResponse
impl Serialize for CanisterStatusResponse
impl Eq for CanisterStatusResponse
impl StructuralPartialEq for CanisterStatusResponse
Auto Trait Implementations§
impl Freeze for CanisterStatusResponse
impl RefUnwindSafe for CanisterStatusResponse
impl Send for CanisterStatusResponse
impl Sync for CanisterStatusResponse
impl Unpin for CanisterStatusResponse
impl UnwindSafe for CanisterStatusResponse
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
)