pub struct DigestGenerator<'a> {
pub username: &'a str,
pub password: &'a str,
pub nonce: &'a str,
pub uri: &'a Uri,
pub realm: &'a str,
pub method: &'a Method,
pub qop: Option<&'a AuthQop>,
pub algorithm: Algorithm,
}
Expand description
Simple helpful struct to generate & verify the Digest
authentication strings.
It can also be created from an Authorization,
an &str
for the password and a Method using the from method.
Fields§
§username: &'a str
§password: &'a str
§nonce: &'a str
§uri: &'a Uri
§realm: &'a str
§method: &'a Method
§qop: Option<&'a AuthQop>
§algorithm: Algorithm
Implementations§
Trait Implementations§
Source§impl<'a> Clone for DigestGenerator<'a>
impl<'a> Clone for DigestGenerator<'a>
Source§fn clone(&self) -> DigestGenerator<'a>
fn clone(&self) -> DigestGenerator<'a>
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<'a> Freeze for DigestGenerator<'a>
impl<'a> RefUnwindSafe for DigestGenerator<'a>
impl<'a> Send for DigestGenerator<'a>
impl<'a> Sync for DigestGenerator<'a>
impl<'a> Unpin for DigestGenerator<'a>
impl<'a> UnwindSafe for DigestGenerator<'a>
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