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
)