pub struct CanonicalId(/* private fields */);Expand description
Exactly 32 identity bytes, represented as lowercase hexadecimal on the wire. No sentinel bytes are reserved by this protocol. A host must compare this value with its protected identity, never enroll trust from a client claim.
Implementations§
Trait Implementations§
Source§impl CandidType for CanonicalId
impl CandidType for CanonicalId
Source§impl Clone for CanonicalId
impl Clone for CanonicalId
impl Copy for CanonicalId
Source§impl Debug for CanonicalId
impl Debug for CanonicalId
Source§impl<'de> Deserialize<'de> for CanonicalId
impl<'de> Deserialize<'de> for CanonicalId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CanonicalId
impl Display for CanonicalId
impl Eq for CanonicalId
Source§impl FromStr for CanonicalId
impl FromStr for CanonicalId
Source§impl Hash for CanonicalId
impl Hash for CanonicalId
Source§impl Ord for CanonicalId
impl Ord for CanonicalId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CanonicalId
impl PartialEq for CanonicalId
Source§impl PartialOrd for CanonicalId
impl PartialOrd for CanonicalId
Source§impl Serialize for CanonicalId
impl Serialize for CanonicalId
impl StructuralPartialEq for CanonicalId
Auto Trait Implementations§
impl Freeze for CanonicalId
impl RefUnwindSafe for CanonicalId
impl Send for CanonicalId
impl Sync for CanonicalId
impl Unpin for CanonicalId
impl UnsafeUnpin for CanonicalId
impl UnwindSafe for CanonicalId
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