Struct actix_web_lab::extract::RequestSignature
source · pub struct RequestSignature<T, S: RequestSignatureScheme> { /* private fields */ }
Expand description
Wraps an extractor and calculates a request signature hash alongside.
Warning: Currently, this will always take the body meaning that if a body extractor is used, this needs to wrap it or else it will not work.
Implementations§
source§impl<T, S: RequestSignatureScheme> RequestSignature<T, S>
impl<T, S: RequestSignatureScheme> RequestSignature<T, S>
sourcepub fn into_parts(self) -> (T, S::Signature)
pub fn into_parts(self) -> (T, S::Signature)
Returns tuple containing body type, and owned hash.
Trait Implementations§
source§impl<T: Clone, S: Clone + RequestSignatureScheme> Clone for RequestSignature<T, S>where
S::Signature: Clone,
impl<T: Clone, S: Clone + RequestSignatureScheme> Clone for RequestSignature<T, S>where S::Signature: Clone,
source§fn clone(&self) -> RequestSignature<T, S>
fn clone(&self) -> RequestSignature<T, S>
Returns a copy 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<T, S> FromRequest for RequestSignature<T, S>where
T: FromRequest + 'static,
T::Error: Debug + Display,
S: RequestSignatureScheme + 'static,
S::Error: Debug + Display,
impl<T, S> FromRequest for RequestSignature<T, S>where T: FromRequest + 'static, T::Error: Debug + Display, S: RequestSignatureScheme + 'static, S::Error: Debug + Display,
§type Error = RequestSignatureError<T, S>
type Error = RequestSignatureError<T, S>
The associated error which can be returned.
§type Future = Pin<Box<dyn Future<Output = Result<RequestSignature<T, S>, <RequestSignature<T, S> as FromRequest>::Error>>, Global>>
type Future = Pin<Box<dyn Future<Output = Result<RequestSignature<T, S>, <RequestSignature<T, S> as FromRequest>::Error>>, Global>>
Future that resolves to a
Self
. Read moresource§fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
Create a
Self
from request parts asynchronously.Auto Trait Implementations§
impl<T, S> RefUnwindSafe for RequestSignature<T, S>where T: RefUnwindSafe, <S as RequestSignatureScheme>::Signature: RefUnwindSafe,
impl<T, S> Send for RequestSignature<T, S>where T: Send, <S as RequestSignatureScheme>::Signature: Send,
impl<T, S> Sync for RequestSignature<T, S>where T: Sync, <S as RequestSignatureScheme>::Signature: Sync,
impl<T, S> Unpin for RequestSignature<T, S>where T: Unpin, <S as RequestSignatureScheme>::Signature: Unpin,
impl<T, S> UnwindSafe for RequestSignature<T, S>where T: UnwindSafe, <S as RequestSignatureScheme>::Signature: UnwindSafe,
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