pub struct CanisterChange {
pub timestamp_nanos: u64,
pub canister_version: u64,
pub origin: CanisterChangeOrigin,
pub details: CanisterChangeDetails,
}
Expand description
Represents a canister change as stored in the canister history.
Fields§
§timestamp_nanos: u64
The system timestamp (in nanoseconds since Unix Epoch) at which the change was performed
canister_version: u64
The canister version after performing the change.
origin: CanisterChangeOrigin
The change’s origin (a user or a canister).
details: CanisterChangeDetails
The change’s details.
Trait Implementations§
Source§impl CandidType for CanisterChange
impl CandidType for CanisterChange
Source§impl Clone for CanisterChange
impl Clone for CanisterChange
Source§fn clone(&self) -> CanisterChange
fn clone(&self) -> CanisterChange
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 CanisterChange
impl Debug for CanisterChange
Source§impl<'de> Deserialize<'de> for CanisterChange
impl<'de> Deserialize<'de> for CanisterChange
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 CanisterChange
impl Hash for CanisterChange
Source§impl Ord for CanisterChange
impl Ord for CanisterChange
Source§fn cmp(&self, other: &CanisterChange) -> Ordering
fn cmp(&self, other: &CanisterChange) -> 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 CanisterChange
impl PartialEq for CanisterChange
Source§impl PartialOrd for CanisterChange
impl PartialOrd for CanisterChange
Source§impl Serialize for CanisterChange
impl Serialize for CanisterChange
impl Eq for CanisterChange
impl StructuralPartialEq for CanisterChange
Auto Trait Implementations§
impl Freeze for CanisterChange
impl RefUnwindSafe for CanisterChange
impl Send for CanisterChange
impl Sync for CanisterChange
impl Unpin for CanisterChange
impl UnwindSafe for CanisterChange
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
)