pub struct ParsedClientData {
pub type_: String,
pub challenge_bytes: Vec<u8>,
pub origin: String,
pub cross_origin: bool,
pub raw_json: Vec<u8>,
}Expand description
Decoded and structured clientDataJSON ready for validation.
Fields§
§type_: StringThe ceremony type — "webauthn.create" or "webauthn.get".
challenge_bytes: Vec<u8>The raw challenge bytes (base64url-decoded from the JSON challenge field).
origin: StringThe origin the client reports (e.g. "https://example.com").
cross_origin: boolWhether the browser flagged this as a cross-origin credential use.
true when crossOrigin is present and set to true in the JSON;
false when absent or explicitly false.
raw_json: Vec<u8>A copy of the original raw JSON bytes.
Kept because clientDataHash = SHA-256(clientDataJSON) must be computed
over the exact bytes as received — not a re-serialised version.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedClientData
impl RefUnwindSafe for ParsedClientData
impl Send for ParsedClientData
impl Sync for ParsedClientData
impl Unpin for ParsedClientData
impl UnsafeUnpin for ParsedClientData
impl UnwindSafe for ParsedClientData
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