pub struct AuthChallenge { /* private fields */ }Expand description
Structured WWW-Authenticate challenge.
Implementations§
Source§impl AuthChallenge
impl AuthChallenge
Sourcepub fn new(scheme: impl Into<String>) -> SoapResult<Self>
pub fn new(scheme: impl Into<String>) -> SoapResult<Self>
Creates a challenge for a validated authentication scheme.
Sourcepub fn realm(self, realm: impl Into<String>) -> SoapResult<Self>
pub fn realm(self, realm: impl Into<String>) -> SoapResult<Self>
Adds or replaces the challenge realm.
Sourcepub fn parameter(
self,
name: impl Into<String>,
value: impl Into<String>,
) -> SoapResult<Self>
pub fn parameter( self, name: impl Into<String>, value: impl Into<String>, ) -> SoapResult<Self>
Adds or replaces one quoted challenge parameter.
Sourcepub fn to_header_value(&self) -> SoapResult<HeaderValue>
pub fn to_header_value(&self) -> SoapResult<HeaderValue>
Encodes the challenge as a valid HTTP header value.
Trait Implementations§
Source§impl Clone for AuthChallenge
impl Clone for AuthChallenge
Source§fn clone(&self) -> AuthChallenge
fn clone(&self) -> AuthChallenge
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 AuthChallenge
impl Debug for AuthChallenge
Source§impl Display for AuthChallenge
impl Display for AuthChallenge
impl Eq for AuthChallenge
Source§impl PartialEq for AuthChallenge
impl PartialEq for AuthChallenge
impl StructuralPartialEq for AuthChallenge
Auto Trait Implementations§
impl Freeze for AuthChallenge
impl RefUnwindSafe for AuthChallenge
impl Send for AuthChallenge
impl Sync for AuthChallenge
impl Unpin for AuthChallenge
impl UnsafeUnpin for AuthChallenge
impl UnwindSafe for AuthChallenge
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