pub struct DigestAuth { /* private fields */ }Expand description
HTTP Digest authentication credentials extractor (stub).
Extracts the raw Authorization: Digest ... header value without
implementing the full Digest challenge-response protocol (RFC 7616).
This mirrors Python FastAPI’s behavior of providing a stub for
Digest auth.
The credentials string contains the raw Digest parameters (username, realm, nonce, uri, response, etc.) which the application must validate.
Implementations§
Source§impl DigestAuth
impl DigestAuth
Trait Implementations§
Source§impl Clone for DigestAuth
impl Clone for DigestAuth
Source§fn clone(&self) -> DigestAuth
fn clone(&self) -> DigestAuth
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 moreSource§impl Debug for DigestAuth
impl Debug for DigestAuth
Source§impl FromRequest for DigestAuth
impl FromRequest for DigestAuth
Source§type Error = DigestAuthError
type Error = DigestAuthError
Error type when extraction fails.
Source§async fn from_request(
_ctx: &RequestContext,
req: &mut Request,
) -> Result<Self, Self::Error>
async fn from_request( _ctx: &RequestContext, req: &mut Request, ) -> Result<Self, Self::Error>
Extract a value from the request. Read more
Auto Trait Implementations§
impl Freeze for DigestAuth
impl RefUnwindSafe for DigestAuth
impl Send for DigestAuth
impl Sync for DigestAuth
impl Unpin for DigestAuth
impl UnwindSafe for DigestAuth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).