pub struct HttpChallenge {
pub scheme: String,
pub params: Vec<(String, String)>,
}Expand description
One authentication challenge: its scheme and auth parameters.
Scheme and parameter names are lowercased (both compare case-insensitively on the wire); parameter values are unquoted.
Fields§
§scheme: StringThe lowercased authentication scheme (basic, bearer, …).
params: Vec<(String, String)>The auth parameters, names lowercased and values unquoted.
Implementations§
Trait Implementations§
Source§impl Clone for HttpChallenge
impl Clone for HttpChallenge
Source§fn clone(&self) -> HttpChallenge
fn clone(&self) -> HttpChallenge
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 HttpChallenge
impl Debug for HttpChallenge
impl Eq for HttpChallenge
Source§impl PartialEq for HttpChallenge
impl PartialEq for HttpChallenge
impl StructuralPartialEq for HttpChallenge
Auto Trait Implementations§
impl Freeze for HttpChallenge
impl RefUnwindSafe for HttpChallenge
impl Send for HttpChallenge
impl Sync for HttpChallenge
impl Unpin for HttpChallenge
impl UnsafeUnpin for HttpChallenge
impl UnwindSafe for HttpChallenge
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