pub enum PublicKeyCredentialType {
PublicKey,
Unknown,
}Expand description
This enumeration defines the valid credential types. It is an extension point; values can be added to it in the future, as more credential types are defined. The values of this enumeration are used for versioning the Authentication Assertion and attestation structures according to the type of the authenticator.
https://w3c.github.io/webauthn/#enumdef-publickeycredentialtype
Variants§
PublicKey
Currently the only type defined is a PublicKey meaning the public conterpart of an
asymmetric key pair.
Unknown
This is the default as it will be ignored if the value is unknown during deserialization
Trait Implementations§
Source§impl Clone for PublicKeyCredentialType
impl Clone for PublicKeyCredentialType
Source§fn clone(&self) -> PublicKeyCredentialType
fn clone(&self) -> PublicKeyCredentialType
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 PublicKeyCredentialType
impl Debug for PublicKeyCredentialType
Source§impl Default for PublicKeyCredentialType
impl Default for PublicKeyCredentialType
Source§fn default() -> PublicKeyCredentialType
fn default() -> PublicKeyCredentialType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicKeyCredentialType
impl<'de> Deserialize<'de> for PublicKeyCredentialType
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 PublicKeyCredentialType
impl PartialEq for PublicKeyCredentialType
Source§impl Serialize for PublicKeyCredentialType
impl Serialize for PublicKeyCredentialType
impl Copy for PublicKeyCredentialType
impl Eq for PublicKeyCredentialType
impl StructuralPartialEq for PublicKeyCredentialType
Auto Trait Implementations§
impl Freeze for PublicKeyCredentialType
impl RefUnwindSafe for PublicKeyCredentialType
impl Send for PublicKeyCredentialType
impl Sync for PublicKeyCredentialType
impl Unpin for PublicKeyCredentialType
impl UnwindSafe for PublicKeyCredentialType
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> 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.