pub struct Did(pub [u8; 32]);Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl Did
impl Did
pub fn from_components(comps: Vec<impl AsRef<[u8]>>) -> Self
pub fn from_hex_string(source_bytes_str: &str) -> Self
pub fn from_bytes(source_bytes: &Vec<u8>) -> Self
pub fn zero() -> Self
pub fn to_string(&self) -> String
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_uuid(&self) -> Uuid
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Did
impl<'de> Deserialize<'de> for Did
Source§fn deserialize<D>(deserializer: D) -> Result<Did, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Did, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Did
impl Ord for Did
Source§impl PartialOrd for Did
impl PartialOrd for Did
impl Eq for Did
impl StructuralPartialEq for Did
Auto Trait Implementations§
impl Freeze for Did
impl RefUnwindSafe for Did
impl Send for Did
impl Sync for Did
impl Unpin for Did
impl UnwindSafe for Did
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.