Struct ic_cdk::api::management_canister::main::CanisterInfoResponse
source · pub struct CanisterInfoResponse {
pub total_num_changes: u64,
pub recent_changes: Vec<CanisterChange>,
pub module_hash: Option<Vec<u8>>,
pub controllers: Vec<Principal>,
}
Expand description
Return type of canister_info.
Fields§
§total_num_changes: u64
Total number of changes ever recorded in canister history.
This might be higher than the number of canister changes in recent_changes
because the IC might drop old canister changes from its history
(with 20
most recent canister changes to always remain in the list).
recent_changes: Vec<CanisterChange>
The canister changes stored in the order from the oldest to the most recent.
module_hash: Option<Vec<u8>>
A SHA256 hash of the module installed on the canister. This is null if the canister is empty.
controllers: Vec<Principal>
Controllers of the canister.
Trait Implementations§
source§impl CandidType for CanisterInfoResponse
impl CandidType for CanisterInfoResponse
source§impl Clone for CanisterInfoResponse
impl Clone for CanisterInfoResponse
source§fn clone(&self) -> CanisterInfoResponse
fn clone(&self) -> CanisterInfoResponse
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 CanisterInfoResponse
impl Debug for CanisterInfoResponse
source§impl<'de> Deserialize<'de> for CanisterInfoResponse
impl<'de> Deserialize<'de> for CanisterInfoResponse
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 CanisterInfoResponse
impl Hash for CanisterInfoResponse
source§impl Ord for CanisterInfoResponse
impl Ord for CanisterInfoResponse
source§fn cmp(&self, other: &CanisterInfoResponse) -> Ordering
fn cmp(&self, other: &CanisterInfoResponse) -> 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 CanisterInfoResponse
impl PartialEq for CanisterInfoResponse
source§impl PartialOrd for CanisterInfoResponse
impl PartialOrd for CanisterInfoResponse
source§impl Serialize for CanisterInfoResponse
impl Serialize for CanisterInfoResponse
impl Eq for CanisterInfoResponse
impl StructuralPartialEq for CanisterInfoResponse
Auto Trait Implementations§
impl Freeze for CanisterInfoResponse
impl RefUnwindSafe for CanisterInfoResponse
impl Send for CanisterInfoResponse
impl Sync for CanisterInfoResponse
impl Unpin for CanisterInfoResponse
impl UnwindSafe for CanisterInfoResponse
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
)