pub struct AuthorizedHttpRequest<A: Authorization, R: HttpRequest> { /* private fields */ }Expand description
Wrapper type that adds authorization information to a request
Implementations§
Source§impl<A: Authorization, R: HttpRequest> Authorized<A, R>
impl<A: Authorization, R: HttpRequest> Authorized<A, R>
Trait Implementations§
Source§impl<A: Debug + Authorization, R: Debug + HttpRequest> Debug for Authorized<A, R>
impl<A: Debug + Authorization, R: Debug + HttpRequest> Debug for Authorized<A, R>
Source§impl<A: Authorization, R: HttpRequest> HttpRequest for Authorized<A, R>
impl<A: Authorization, R: HttpRequest> HttpRequest for Authorized<A, R>
Source§type Response = <R as HttpRequest>::Response
type Response = <R as HttpRequest>::Response
The response type that is expected to the request
Source§type Query = <R as HttpRequest>::Query
type Query = <R as HttpRequest>::Query
The query type that is sent to the API endpoint
Source§type Body = <R as HttpRequest>::Body
type Body = <R as HttpRequest>::Body
The body type that is sent to the API endpoint
Source§fn apply_headers(&self, headers: &mut HeaderMap)
fn apply_headers(&self, headers: &mut HeaderMap)
Get the headers for the
http::RequestAuto Trait Implementations§
impl<A, R> Freeze for Authorized<A, R>
impl<A, R> RefUnwindSafe for Authorized<A, R>where
A: RefUnwindSafe,
R: RefUnwindSafe,
impl<A, R> Send for Authorized<A, R>
impl<A, R> Sync for Authorized<A, R>
impl<A, R> Unpin for Authorized<A, R>
impl<A, R> UnwindSafe for Authorized<A, R>where
A: UnwindSafe,
R: 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
Source§impl<R> WithAuthorization for Rwhere
R: HttpRequest,
impl<R> WithAuthorization for Rwhere
R: HttpRequest,
Augment the request with authorization information