pub enum PeerKeyType {
Ed25519,
Secp256k1,
P256,
}Expand description
Supported key types for did:peer creation
Variants§
Implementations§
Source§impl PeerKeyType
impl PeerKeyType
Sourcepub fn to_crypto_key_type(self) -> KeyType
pub fn to_crypto_key_type(self) -> KeyType
Convert to affinidi_crypto::KeyType
Trait Implementations§
Source§impl Clone for PeerKeyType
impl Clone for PeerKeyType
Source§fn clone(&self) -> PeerKeyType
fn clone(&self) -> PeerKeyType
Returns a duplicate 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 PeerKeyType
impl Debug for PeerKeyType
Source§impl<'de> Deserialize<'de> for PeerKeyType
impl<'de> Deserialize<'de> for PeerKeyType
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 PartialEq for PeerKeyType
impl PartialEq for PeerKeyType
Source§impl Serialize for PeerKeyType
impl Serialize for PeerKeyType
impl Copy for PeerKeyType
impl Eq for PeerKeyType
impl StructuralPartialEq for PeerKeyType
Auto Trait Implementations§
impl Freeze for PeerKeyType
impl RefUnwindSafe for PeerKeyType
impl Send for PeerKeyType
impl Sync for PeerKeyType
impl Unpin for PeerKeyType
impl UnsafeUnpin for PeerKeyType
impl UnwindSafe for PeerKeyType
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