Struct ockam_identity::models::Identifier
source · pub struct Identifier(pub [u8; 32]);
Expand description
Unique identifier for an super::super::identity::Identity
Equals to the ChangeHash
of the first super::Change
in the super::ChangeHistory
Computed as SHA256 of the first super::ChangeData
CBOR binary
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
source§impl Clone for Identifier
impl Clone for Identifier
source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
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 Identifier
impl Debug for Identifier
source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for Identifier
impl<'bytes, Ctx> Decode<'bytes, Ctx> for Identifier
source§impl<'de> Deserialize<'de> for Identifier
impl<'de> Deserialize<'de> for Identifier
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 Identifier
impl Display for Identifier
source§impl<Ctx> Encode<Ctx> for Identifier
impl<Ctx> Encode<Ctx> for Identifier
source§impl From<&Identifier> for String
impl From<&Identifier> for String
source§fn from(id: &Identifier) -> Self
fn from(id: &Identifier) -> Self
Converts to this type from the input type.
source§impl From<ChangeHash> for Identifier
impl From<ChangeHash> for Identifier
source§fn from(value: ChangeHash) -> Self
fn from(value: ChangeHash) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for String
impl From<Identifier> for String
source§fn from(id: Identifier) -> Self
fn from(id: Identifier) -> Self
Converts to this type from the input type.
source§impl FromStr for Identifier
impl FromStr for Identifier
source§impl FromString for Identifier
impl FromString for Identifier
source§fn from_string(s: &str) -> Result<Self>
fn from_string(s: &str) -> Result<Self>
Parses string and gives the result. Can return an error in case
of parsing error.
source§impl Hash for Identifier
impl Hash for Identifier
source§impl Ord for Identifier
impl Ord for Identifier
source§fn cmp(&self, other: &Identifier) -> Ordering
fn cmp(&self, other: &Identifier) -> 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 Identifier
impl PartialEq for Identifier
source§fn eq(&self, other: &Identifier) -> bool
fn eq(&self, other: &Identifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Identifier
impl PartialOrd for Identifier
source§fn partial_cmp(&self, other: &Identifier) -> Option<Ordering>
fn partial_cmp(&self, other: &Identifier) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Identifier
impl Serialize for Identifier
source§impl ToSqlxType for Identifier
impl ToSqlxType for Identifier
source§impl TryFrom<&[u8]> for Identifier
impl TryFrom<&[u8]> for Identifier
source§impl TryFrom<&str> for Identifier
impl TryFrom<&str> for Identifier
source§impl TryFrom<String> for Identifier
impl TryFrom<String> for Identifier
impl Eq for Identifier
impl StructuralEq for Identifier
impl StructuralPartialEq for Identifier
Auto Trait Implementations§
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<T> Decodable for Twhere
T: DeserializeOwned,
impl<T> Decodable for Twhere
T: DeserializeOwned,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.