pub struct WebAuthnEnrollmentChallenge { /* private fields */ }Implementations§
Source§impl WebAuthnEnrollmentChallenge
impl WebAuthnEnrollmentChallenge
Sourcepub fn challenge_b64(&self) -> Option<&str>
pub fn challenge_b64(&self) -> Option<&str>
Returns the base64url-encoded challenge exactly as sent by the backend.
Sourcepub fn challenge_bytes(&self) -> AuthResult<Vec<u8>>
pub fn challenge_bytes(&self) -> AuthResult<Vec<u8>>
Decodes the challenge into raw bytes using the same URL-safe alphabet as the JS SDK.
pub fn challenge(&self) -> Option<&str>
pub fn rp_id(&self) -> Option<&str>
pub fn user_name(&self) -> Option<&str>
pub fn user_id(&self) -> Option<&[u8]>
pub fn as_raw(&self) -> &Value
pub fn into_raw(self) -> Value
pub fn from_value(value: Value) -> AuthResult<Self>
Trait Implementations§
Source§impl Clone for WebAuthnEnrollmentChallenge
impl Clone for WebAuthnEnrollmentChallenge
Source§fn clone(&self) -> WebAuthnEnrollmentChallenge
fn clone(&self) -> WebAuthnEnrollmentChallenge
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 moreAuto Trait Implementations§
impl Freeze for WebAuthnEnrollmentChallenge
impl RefUnwindSafe for WebAuthnEnrollmentChallenge
impl Send for WebAuthnEnrollmentChallenge
impl Sync for WebAuthnEnrollmentChallenge
impl Unpin for WebAuthnEnrollmentChallenge
impl UnwindSafe for WebAuthnEnrollmentChallenge
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