Struct ic_cdk::api::management_canister::main::FromCanisterRecord
source · pub struct FromCanisterRecord {
pub canister_id: Principal,
pub canister_version: Option<u64>,
}
Expand description
Details about a canister change initiated by a canister (called originator).
Fields§
§canister_id: Principal
Principal of the originator.
canister_version: Option<u64>
Canister version of the originator when the originator initiated the change.
This is null if the original does not include its canister version
in the field sender_canister_version
of the management canister payload.
Trait Implementations§
source§impl CandidType for FromCanisterRecord
impl CandidType for FromCanisterRecord
source§impl Clone for FromCanisterRecord
impl Clone for FromCanisterRecord
source§fn clone(&self) -> FromCanisterRecord
fn clone(&self) -> FromCanisterRecord
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 FromCanisterRecord
impl Debug for FromCanisterRecord
source§impl<'de> Deserialize<'de> for FromCanisterRecord
impl<'de> Deserialize<'de> for FromCanisterRecord
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 FromCanisterRecord
impl Hash for FromCanisterRecord
source§impl Ord for FromCanisterRecord
impl Ord for FromCanisterRecord
source§fn cmp(&self, other: &FromCanisterRecord) -> Ordering
fn cmp(&self, other: &FromCanisterRecord) -> 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 FromCanisterRecord
impl PartialEq for FromCanisterRecord
source§impl PartialOrd for FromCanisterRecord
impl PartialOrd for FromCanisterRecord
source§impl Serialize for FromCanisterRecord
impl Serialize for FromCanisterRecord
impl Eq for FromCanisterRecord
impl StructuralPartialEq for FromCanisterRecord
Auto Trait Implementations§
impl Freeze for FromCanisterRecord
impl RefUnwindSafe for FromCanisterRecord
impl Send for FromCanisterRecord
impl Sync for FromCanisterRecord
impl Unpin for FromCanisterRecord
impl UnwindSafe for FromCanisterRecord
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
)