pub struct CredentialBuilder { /* private fields */ }Available on crate features
experimental and WebAuthn only.Implementations§
Source§impl CredentialBuilder
impl CredentialBuilder
pub fn credential_id(&mut self, v: String) -> &mut Self
pub fn is_resident_credential(&mut self, v: bool) -> &mut Self
Sourcepub fn rp_id(&mut self, v: String) -> &mut Self
pub fn rp_id(&mut self, v: String) -> &mut Self
Relying Party ID the credential is scoped to. Must be set when adding a credential.
Sourcepub fn private_key(&mut self, v: String) -> &mut Self
pub fn private_key(&mut self, v: String) -> &mut Self
The ECDSA P-256 private key in PKCS#8 format.
Sourcepub fn user_handle(&mut self, v: String) -> &mut Self
pub fn user_handle(&mut self, v: String) -> &mut Self
An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.
Sourcepub fn sign_count(&mut self, v: u32) -> &mut Self
pub fn sign_count(&mut self, v: u32) -> &mut Self
Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter
Sourcepub fn large_blob(&mut self, v: String) -> &mut Self
pub fn large_blob(&mut self, v: String) -> &mut Self
The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension
pub fn build(&mut self) -> Result<Credential, &'static str>
Trait Implementations§
Source§impl Clone for CredentialBuilder
impl Clone for CredentialBuilder
Source§fn clone(&self) -> CredentialBuilder
fn clone(&self) -> CredentialBuilder
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 CredentialBuilder
impl Debug for CredentialBuilder
Auto Trait Implementations§
impl Freeze for CredentialBuilder
impl RefUnwindSafe for CredentialBuilder
impl Send for CredentialBuilder
impl Sync for CredentialBuilder
impl Unpin for CredentialBuilder
impl UnwindSafe for CredentialBuilder
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