pub struct CanisterId(/* private fields */);Implementations§
Trait Implementations§
Source§impl CandidType for CanisterId
impl CandidType for CanisterId
Source§impl Clone for CanisterId
impl Clone for CanisterId
Source§fn clone(&self) -> CanisterId
fn clone(&self) -> CanisterId
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 CanisterId
impl Debug for CanisterId
Source§impl<'de> Deserialize<'de> for CanisterId
impl<'de> Deserialize<'de> for CanisterId
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 Display for CanisterId
impl Display for CanisterId
Source§impl From<CanisterId> for Principal
impl From<CanisterId> for Principal
Source§fn from(t: CanisterId) -> Self
fn from(t: CanisterId) -> Self
Converts to this type from the input type.
Source§impl From<Principal> for CanisterId
impl From<Principal> for CanisterId
Source§impl Hash for CanisterId
impl Hash for CanisterId
Source§impl Ord for CanisterId
impl Ord for CanisterId
Source§fn cmp(&self, other: &CanisterId) -> Ordering
fn cmp(&self, other: &CanisterId) -> 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<Principal> for CanisterId
impl PartialEq<Principal> for CanisterId
Source§impl PartialEq for CanisterId
impl PartialEq for CanisterId
Source§impl PartialOrd for CanisterId
impl PartialOrd for CanisterId
Source§impl Serialize for CanisterId
impl Serialize for CanisterId
Source§impl Storable for CanisterId
impl Storable for CanisterId
Source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
Source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Copy for CanisterId
impl Eq for CanisterId
impl StructuralPartialEq for CanisterId
Auto Trait Implementations§
impl Freeze for CanisterId
impl RefUnwindSafe for CanisterId
impl Send for CanisterId
impl Sync for CanisterId
impl Unpin for CanisterId
impl UnwindSafe for CanisterId
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