pub struct Challenge {
pub challenge: String,
pub options: String,
pub expires_unix: i64,
}Expand description
What a Challenger made for one sign-in: a challenge the signed answer
is bound to, and the text the client needs to answer it.
Debug shows the expiry only.
Fields§
§challenge: StringThe key the consumer keeps with the pending sign-in and returns in
Attempt::challenge (base64url for a passkey).
options: StringThe text the client needs, in the method’s own wire format: for a passkey the JSON for
navigator.credentials.get. The consumer passes it on unread.
expires_unix: i64When it stops being taken, in seconds since the Unix epoch.
Trait Implementations§
impl Eq for Challenge
Source§impl FromValue for Challenge
impl FromValue for Challenge
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl Schema for Challenge
impl Schema for Challenge
impl StructuralPartialEq for Challenge
Auto Trait Implementations§
impl Freeze for Challenge
impl RefUnwindSafe for Challenge
impl Send for Challenge
impl Sync for Challenge
impl Unpin for Challenge
impl UnsafeUnpin for Challenge
impl UnwindSafe for Challenge
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