pub struct StatusCallResult {
    pub status: CanisterStatus,
    pub settings: DefiniteCanisterSettings,
    pub module_hash: Option<Vec<u8>>,
    pub memory_size: Nat,
    pub cycles: Nat,
}
Expand description

The complete canister status information of a canister. This includes the CanisterStatus, a hash of the module installed on the canister (None if nothing installed), the contoller of the canister, the canisters memory size, and its balance in cycles.

Fields

status: CanisterStatus

The status of the canister.

settings: DefiniteCanisterSettings

The canister’s settings.

module_hash: Option<Vec<u8>>

The SHA-256 hash of the canister’s installed code, if any.

memory_size: Nat

The total size, in bytes, of the memory the canister is using.

cycles: Nat

The canister’s cycle balance.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.