pub struct Attempt {
pub name: Option<String>,
pub secret: Option<String>,
pub headers: Vec<(String, String)>,
pub peer: Option<String>,
pub secure: Option<bool>,
pub certificate: Option<String>,
pub certificates: Option<Vec<Bytes>>,
pub method: Option<String>,
pub challenge: Option<String>,
}Expand description
Credentials and request facts presented to an authenticator.
Secret material and request metadata are omitted from Debug output.
Fields§
§name: Option<String>Account name supplied by the user, when the method has one.
secret: Option<String>Password or bearer key supplied for this attempt.
headers: Vec<(String, String)>Request header (name, value) pairs in the order received. A header sent twice
appears twice; names are matched case-insensitively.
peer: Option<String>Remote peer address when available.
secure: Option<bool>Whether the request arrived over a protected transport.
certificate: Option<String>Identity of a client certificate whose key was verified by the transport.
certificates: Option<Vec<Bytes>>The client’s certificates as DER, leaf first, then the intermediates it sent, when the transport proved the leaf’s key. A provider that decides trust or reads names from the certificate takes them from here.
method: Option<String>The methods word the consumer presents this credential as, so a
provider serving two methods (a one-time code and a recovery code) tells them apart.
None is the provider’s own default method.
challenge: Option<String>The challenge a Challenger issued for this sign-in, as it answered
it (Challenge::challenge), which the consumer keeps with the pending sign-in and returns
with the answer. Debug shows only that there is one.
Trait Implementations§
impl Eq for Attempt
Source§impl FromValue for Attempt
impl FromValue for Attempt
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
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.