pub struct Challenge {
pub code: u16,
pub realm: Option<String>,
pub nonce: Option<Vec<u8>>,
}Expand description
A parsed Binding Error Response (SPEC.md §14.9). realm/nonce are None when the
response simply did not carry that attribute — parse_challenge never errors for a missing
optional attribute; only a message-level failure (wrong type, wrong txid, truncated) is an
Err.
Fields§
§code: u16The ERROR-CODE class+number (400/401/438, or 0 if the response carried none at all).
realm: Option<String>The REALM attribute’s UTF-8 value, if present and valid UTF-8.
nonce: Option<Vec<u8>>The NONCE attribute value EXACTLY as carried (base64url text), if present.
Trait Implementations§
impl Eq 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