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
)