pub enum CollectedClientDataErr {
Show 14 variants
Len,
InvalidStart,
Type,
ChallengeKey,
Challenge,
OriginKey,
CrossOriginKey,
CrossOrigin,
InvalidObject,
InvalidEscapedString,
Utf8(Utf8Error),
Utf8Owned(FromUtf8Error),
TopOriginWithoutCrossOrigin,
TopOriginSameAsOrigin,
}Expand description
Error returned from CollectedClientData::from_client_data_json.
Variants§
Len
The slice had invalid length.
InvalidStart
The slice did not begin with {"type":"webauthn..
Type
type
was not "webauthn.create" during registration or "webauthn.get"
during authentication.
ChallengeKey
challenge
without whitespace was not the second key in the object.
Challenge
OriginKey
origin
without whitespace was not the third key in the object.
CrossOriginKey
crossOrigin
without whitespace was not the fourth key in the object.
CrossOrigin
crossOrigin
was not true or false.
InvalidObject
The object was not a valid JSON object.
InvalidEscapedString
origin or
topOrigin was
not escaped correctly (i.e., a Unicode scalar value in U+0000–U+001F was not escaped or another Unicode
scalar value, sans " and \, was escaped).
Utf8(Utf8Error)
Utf8Owned(FromUtf8Error)
TopOriginWithoutCrossOrigin
topOrigin existed
despite crossOrigin
being false.
TopOriginSameAsOrigin
Trait Implementations§
Source§impl Debug for CollectedClientDataErr
impl Debug for CollectedClientDataErr
Source§impl Display for CollectedClientDataErr
impl Display for CollectedClientDataErr
impl Eq for CollectedClientDataErr
Source§impl Error for CollectedClientDataErr
impl Error for CollectedClientDataErr
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()