pub enum IdentifierPrefix {
Basic(BasicPrefix),
SelfAddressing(SelfAddressingIdentifier),
SelfSigning(SelfSigningPrefix),
}Variants§
Trait Implementations§
source§impl CesrPrimitive for IdentifierPrefix
impl CesrPrimitive for IdentifierPrefix
fn derivative(&self) -> Vec<u8>
fn derivation_code(&self) -> PrimitiveCode
fn to_str(&self) -> String
source§impl Clone for IdentifierPrefix
impl Clone for IdentifierPrefix
source§fn clone(&self) -> IdentifierPrefix
fn clone(&self) -> IdentifierPrefix
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 IdentifierPrefix
impl Debug for IdentifierPrefix
source§impl Default for IdentifierPrefix
impl Default for IdentifierPrefix
source§fn default() -> IdentifierPrefix
fn default() -> IdentifierPrefix
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IdentifierPrefix
impl<'de> Deserialize<'de> for IdentifierPrefix
Serde compatible Deserialize
source§fn deserialize<D>(
deserializer: D
) -> Result<IdentifierPrefix, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<IdentifierPrefix, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for IdentifierPrefix
impl Display for IdentifierPrefix
source§impl From<(IdentifierCode, Vec<u8>)> for IdentifierPrefix
impl From<(IdentifierCode, Vec<u8>)> for IdentifierPrefix
source§fn from(identifier: (IdentifierCode, Vec<u8>)) -> IdentifierPrefix
fn from(identifier: (IdentifierCode, Vec<u8>)) -> IdentifierPrefix
Converts to this type from the input type.
source§impl FromStr for IdentifierPrefix
impl FromStr for IdentifierPrefix
source§impl Hash for IdentifierPrefix
impl Hash for IdentifierPrefix
source§impl Into<(IdentifierCode, Vec<u8>)> for IdentifierPrefix
impl Into<(IdentifierCode, Vec<u8>)> for IdentifierPrefix
source§impl PartialEq for IdentifierPrefix
impl PartialEq for IdentifierPrefix
source§fn eq(&self, other: &IdentifierPrefix) -> bool
fn eq(&self, other: &IdentifierPrefix) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for IdentifierPrefix
impl Serialize for IdentifierPrefix
Serde compatible Serialize
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for IdentifierPrefix
impl StructuralEq for IdentifierPrefix
impl StructuralPartialEq for IdentifierPrefix
Auto Trait Implementations§
impl RefUnwindSafe for IdentifierPrefix
impl Send for IdentifierPrefix
impl Sync for IdentifierPrefix
impl Unpin for IdentifierPrefix
impl UnwindSafe for IdentifierPrefix
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
§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.