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,
}
👎Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.Expand description
Return type of canister_status.
Fields§
§status: CanisterStatusType
👎Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.See CanisterStatusType.
settings: DefiniteCanisterSettings
👎Deprecated since 0.18.0: The
§api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.module_hash: Option<Vec<u8>>
👎Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.A SHA256 hash of the module installed on the canister. This is null if the canister is empty.
memory_size: Nat
👎Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.The memory size taken by the canister.
cycles: Nat
👎Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.The cycle balance of the canister.
idle_cycles_burned_per_day: Nat
👎Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.Amount of cycles burned per day.
query_stats: QueryStats
👎Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.Query statistics
reserved_cycles: Nat
👎Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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§fn eq(&self, other: &CanisterStatusResponse) -> bool
fn eq(&self, other: &CanisterStatusResponse) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.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