pub struct AuthChallenge {
pub scheme: AuthScheme,
pub realm: Option<String>,
pub error: Option<String>,
pub error_description: Option<String>,
pub scope: Option<String>,
}Expand description
Parsed WWW-Authenticate or Proxy-Authenticate challenge.
Fields§
§scheme: AuthSchemeAuth scheme identifier.
realm: Option<String>realm= parameter, if present.
error: Option<String>error= parameter (RFC 6750 §3), if present.
error_description: Option<String>error_description= parameter (RFC 6750 §3), if present.
scope: Option<String>scope= parameter, if present.
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
Source§fn eq(&self, other: &AuthChallenge) -> bool
fn eq(&self, other: &AuthChallenge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.