pub struct AuthChallengeBuilder { /* private fields */ }Expand description
Builder for AuthChallenge.
Implementations§
Source§impl AuthChallengeBuilder
impl AuthChallengeBuilder
Sourcepub fn source<VALUE: Into<AuthChallengeSource>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source<VALUE: Into<AuthChallengeSource>>( &mut self, value: VALUE, ) -> &mut Self
Source of the authentication challenge.
Sourcepub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Origin of the challenger.
Sourcepub fn scheme<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn scheme<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The authentication scheme used, such as basic or digest
Sourcepub fn realm<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn realm<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The realm of the challenge. May be empty.
Sourcepub fn build(&self) -> Result<AuthChallenge, AuthChallengeBuilderError>
pub fn build(&self) -> Result<AuthChallenge, AuthChallengeBuilderError>
Trait Implementations§
Source§impl Clone for AuthChallengeBuilder
impl Clone for AuthChallengeBuilder
Source§fn clone(&self) -> AuthChallengeBuilder
fn clone(&self) -> AuthChallengeBuilder
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 AuthChallengeBuilder
impl RefUnwindSafe for AuthChallengeBuilder
impl Send for AuthChallengeBuilder
impl Sync for AuthChallengeBuilder
impl Unpin for AuthChallengeBuilder
impl UnsafeUnpin for AuthChallengeBuilder
impl UnwindSafe for AuthChallengeBuilder
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