pub struct AuthChallenge {
pub scheme: AuthScheme,
pub realm: String,
pub nonce: Option<String>,
pub opaque: Option<String>,
pub qop: Option<String>,
pub stale: bool,
}Expand description
Represents an authentication challenge from the server (WWW-Authenticate header).
Parsed from server responses that require authentication. Contains all parameters needed to construct a valid Authorization header.
Fields§
§scheme: AuthSchemeThe authentication scheme used by the server
realm: StringRealm string identifying the protection space
nonce: Option<String>Server-provided nonce value (opaque string)
opaque: Option<String>Server-provided opaque value (passed through unchanged)
qop: Option<String>Quality of protection directive (“auth”, “auth-int”, or None)
stale: boolIndicates if the previous request was rejected due to stale nonce
Trait Implementations§
Source§impl Clone for AuthChallenge
impl Clone for AuthChallenge
Source§fn clone(&self) -> AuthChallenge
fn clone(&self) -> AuthChallenge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthChallenge
impl Debug for AuthChallenge
Source§impl PartialEq for AuthChallenge
impl PartialEq for AuthChallenge
impl StructuralPartialEq for AuthChallenge
Auto Trait Implementations§
impl Freeze for AuthChallenge
impl RefUnwindSafe for AuthChallenge
impl Send for AuthChallenge
impl Sync for AuthChallenge
impl Unpin for AuthChallenge
impl UnsafeUnpin for AuthChallenge
impl UnwindSafe for AuthChallenge
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