pub struct Challenge {
pub url: String,
pub host: String,
pub port: u16,
pub realm: Option<String>,
pub scheme: Scheme,
pub proxy: bool,
pub previous_failures: u32,
}Expand description
An HTTP authentication challenge, as ClientBuilder::on_challenge sees it.
Fields§
§url: String§host: String§port: u16§realm: Option<String>§scheme: Scheme§proxy: boolA proxy asked (407), not the origin server.
previous_failures: u32Credentials this request already offered that the server refused.
Trait Implementations§
impl Eq for Challenge
impl StructuralPartialEq for Challenge
Auto Trait Implementations§
impl Forget for Challenge
impl Freeze for Challenge
impl Move 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