Struct chrome_remote_interface_model::fetch::AuthChallengeResponse [−][src]
pub struct AuthChallengeResponse { /* fields omitted */ }
This is supported on crate features
Fetch
and Network
and IO
and Page
only.Expand description
Response to an AuthChallenge.
Implementations
pub fn new(
response: AuthChallengeResponseResponse,
username: Option<String>,
password: Option<String>
) -> Self
The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.
The username to provide, possibly empty. Should only be set if response is ProvideCredentials.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AuthChallengeResponse
impl Send for AuthChallengeResponse
impl Sync for AuthChallengeResponse
impl Unpin for AuthChallengeResponse
impl UnwindSafe for AuthChallengeResponse
Blanket Implementations
Mutably borrows from an owned value. Read more