pub enum VerificationMethodType {
Ed25519VerificationKey2020,
Ed25519VerificationKey2018,
X25519KeyAgreementKey2020,
X25519KeyAgreementKey2019,
EcdsaSecp256k1VerificationKey2019,
EcdsaSecp256k1RecoveryMethod2020,
JsonWebKey2020,
Bls12381G2Key2020,
GpgVerificationKey2020,
RsaVerificationKey2018,
Custom(String),
}Expand description
Verification Method Types as per W3C DID specification
Variants§
Ed25519VerificationKey2020
Ed25519 signature verification
Ed25519VerificationKey2018
Ed25519 signature verification (2018 version)
X25519KeyAgreementKey2020
X25519 key agreement
X25519KeyAgreementKey2019
X25519 key agreement (2019 version)
EcdsaSecp256k1VerificationKey2019
ECDSA with secp256k1 curve
EcdsaSecp256k1RecoveryMethod2020
ECDSA with secp256k1 recovery (Ethereum-style)
JsonWebKey2020
JSON Web Key 2020
Bls12381G2Key2020
BLS12-381 signature
GpgVerificationKey2020
GPG verification key
RsaVerificationKey2018
RSA verification key
Custom(String)
Custom type
Trait Implementations§
Source§impl Clone for VerificationMethodType
impl Clone for VerificationMethodType
Source§fn clone(&self) -> VerificationMethodType
fn clone(&self) -> VerificationMethodType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VerificationMethodType
impl Debug for VerificationMethodType
Source§impl Default for VerificationMethodType
impl Default for VerificationMethodType
Source§fn default() -> VerificationMethodType
fn default() -> VerificationMethodType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VerificationMethodType
impl<'de> Deserialize<'de> for VerificationMethodType
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 VerificationMethodType
impl Display for VerificationMethodType
impl Eq for VerificationMethodType
Source§impl PartialEq for VerificationMethodType
impl PartialEq for VerificationMethodType
Source§impl Serialize for VerificationMethodType
impl Serialize for VerificationMethodType
impl StructuralPartialEq for VerificationMethodType
Auto Trait Implementations§
impl Freeze for VerificationMethodType
impl RefUnwindSafe for VerificationMethodType
impl Send for VerificationMethodType
impl Sync for VerificationMethodType
impl Unpin for VerificationMethodType
impl UnsafeUnpin for VerificationMethodType
impl UnwindSafe for VerificationMethodType
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