pub struct AuthChallengeResponseBuilder { /* private fields */ }Expand description
Builder for AuthChallengeResponse.
Implementations§
Source§impl AuthChallengeResponseBuilder
impl AuthChallengeResponseBuilder
Sourcepub fn response<VALUE: Into<AuthChallengeResponseResponse>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn response<VALUE: Into<AuthChallengeResponseResponse>>( &mut self, value: VALUE, ) -> &mut 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.
Sourcepub fn username<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn username<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The username to provide, possibly empty. Should only be set if response is ProvideCredentials.
Sourcepub fn password<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn password<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The password to provide, possibly empty. Should only be set if response is ProvideCredentials.
Sourcepub fn build(
&self,
) -> Result<AuthChallengeResponse, AuthChallengeResponseBuilderError>
pub fn build( &self, ) -> Result<AuthChallengeResponse, AuthChallengeResponseBuilderError>
Trait Implementations§
Source§impl Clone for AuthChallengeResponseBuilder
impl Clone for AuthChallengeResponseBuilder
Source§fn clone(&self) -> AuthChallengeResponseBuilder
fn clone(&self) -> AuthChallengeResponseBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthChallengeResponseBuilder
impl RefUnwindSafe for AuthChallengeResponseBuilder
impl Send for AuthChallengeResponseBuilder
impl Sync for AuthChallengeResponseBuilder
impl Unpin for AuthChallengeResponseBuilder
impl UnsafeUnpin for AuthChallengeResponseBuilder
impl UnwindSafe for AuthChallengeResponseBuilder
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