pub struct PasswordlessChallenge { /* private fields */ }Expand description
Passwordless challenge issued after device trust and session mTLS checks.
Implementations§
Source§impl PasswordlessChallenge
impl PasswordlessChallenge
Sourcepub fn new(
challenge_id: impl Into<String>,
method: PasswordlessMethod,
binding: DeviceSessionBinding,
issued_at: OffsetDateTime,
expires_at: OffsetDateTime,
) -> Self
pub fn new( challenge_id: impl Into<String>, method: PasswordlessMethod, binding: DeviceSessionBinding, issued_at: OffsetDateTime, expires_at: OffsetDateTime, ) -> Self
Creates a passwordless challenge.
Sourcepub fn challenge_id(&self) -> &str
pub fn challenge_id(&self) -> &str
Returns the challenge identifier supplied to the proof verifier.
Sourcepub fn method(&self) -> PasswordlessMethod
pub fn method(&self) -> PasswordlessMethod
Returns the selected passwordless method.
Sourcepub fn device_binding(&self) -> &DeviceSessionBinding
pub fn device_binding(&self) -> &DeviceSessionBinding
Returns the device-session binding.
Sourcepub fn issued_at(&self) -> OffsetDateTime
pub fn issued_at(&self) -> OffsetDateTime
Returns the challenge issue time.
Sourcepub fn expires_at(&self) -> OffsetDateTime
pub fn expires_at(&self) -> OffsetDateTime
Returns the challenge expiry time.
Trait Implementations§
Source§impl Clone for PasswordlessChallenge
impl Clone for PasswordlessChallenge
Source§fn clone(&self) -> PasswordlessChallenge
fn clone(&self) -> PasswordlessChallenge
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 PasswordlessChallenge
impl Debug for PasswordlessChallenge
Source§impl PartialEq for PasswordlessChallenge
impl PartialEq for PasswordlessChallenge
Source§fn eq(&self, other: &PasswordlessChallenge) -> bool
fn eq(&self, other: &PasswordlessChallenge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PasswordlessChallenge
impl StructuralPartialEq for PasswordlessChallenge
Auto Trait Implementations§
impl Freeze for PasswordlessChallenge
impl RefUnwindSafe for PasswordlessChallenge
impl Send for PasswordlessChallenge
impl Sync for PasswordlessChallenge
impl Unpin for PasswordlessChallenge
impl UnsafeUnpin for PasswordlessChallenge
impl UnwindSafe for PasswordlessChallenge
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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