pub struct AuthorizedResponse<T> {
pub data: T,
pub token: AuthorizationToken,
}
Expand description
Responder for AuthorizationToken
Fields§
§data: T
§token: AuthorizationToken
Trait Implementations§
source§impl<T: Clone> Clone for AuthorizedResponse<T>
impl<T: Clone> Clone for AuthorizedResponse<T>
source§fn clone(&self) -> AuthorizedResponse<T>
fn clone(&self) -> AuthorizedResponse<T>
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: Responder> Responder for AuthorizedResponse<T>
impl<T: Responder> Responder for AuthorizedResponse<T>
type Body = <T as Responder>::Body
source§fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to
HttpResponse
.impl<T: Copy> Copy for AuthorizedResponse<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for AuthorizedResponse<T>where
T: RefUnwindSafe,
impl<T> Send for AuthorizedResponse<T>where
T: Send,
impl<T> Sync for AuthorizedResponse<T>where
T: Sync,
impl<T> Unpin for AuthorizedResponse<T>where
T: Unpin,
impl<T> UnwindSafe for AuthorizedResponse<T>where
T: 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