Struct chromiumoxide::cdp::browser_protocol::web_authn::Credential
source · pub struct Credential {
pub credential_id: Binary,
pub is_resident_credential: bool,
pub rp_id: Option<String>,
pub private_key: Binary,
pub user_handle: Option<Binary>,
pub sign_count: i64,
pub large_blob: Option<Binary>,
}
Fields§
§credential_id: Binary
§is_resident_credential: bool
§rp_id: Option<String>
Relying Party ID the credential is scoped to. Must be set when adding a credential.
private_key: Binary
The ECDSA P-256 private key in PKCS#8 format.
user_handle: Option<Binary>
An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.
sign_count: i64
Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter
large_blob: Option<Binary>
The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension
Implementations§
source§impl Credential
impl Credential
source§impl Credential
impl Credential
pub fn builder() -> CredentialBuilder
source§impl Credential
impl Credential
pub const IDENTIFIER: &'static str = "WebAuthn.Credential"
Trait Implementations§
source§impl Clone for Credential
impl Clone for Credential
source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
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 Credential
impl Debug for Credential
source§impl<'de> Deserialize<'de> for Credential
impl<'de> Deserialize<'de> for Credential
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Credential, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Credential, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Credential
impl PartialEq for Credential
source§fn eq(&self, other: &Credential) -> bool
fn eq(&self, other: &Credential) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Credential
impl Serialize for Credential
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 StructuralPartialEq for Credential
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
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