pub struct CredentialBuilder { /* private fields */ }
Implementations§
Source§impl CredentialBuilder
impl CredentialBuilder
pub fn credential_id( self, credential_id: impl Into<Binary>, ) -> CredentialBuilder
pub fn is_resident_credential( self, is_resident_credential: impl Into<bool>, ) -> CredentialBuilder
pub fn rp_id(self, rp_id: impl Into<String>) -> CredentialBuilder
pub fn private_key(self, private_key: impl Into<Binary>) -> CredentialBuilder
pub fn user_handle(self, user_handle: impl Into<Binary>) -> CredentialBuilder
pub fn sign_count(self, sign_count: impl Into<i64>) -> CredentialBuilder
pub fn large_blob(self, large_blob: impl Into<Binary>) -> CredentialBuilder
pub fn backup_eligibility( self, backup_eligibility: impl Into<bool>, ) -> CredentialBuilder
pub fn backup_state(self, backup_state: impl Into<bool>) -> CredentialBuilder
pub fn build(self) -> Result<Credential, String>
Trait Implementations§
Source§impl Clone for CredentialBuilder
impl Clone for CredentialBuilder
Source§fn clone(&self) -> CredentialBuilder
fn clone(&self) -> CredentialBuilder
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 Default for CredentialBuilder
impl Default for CredentialBuilder
Source§fn default() -> CredentialBuilder
fn default() -> CredentialBuilder
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more