pub struct ApiResponse<T> {
pub data: T,
pub set_cookies: Vec<HeaderValue>,
}Expand description
An endpoint’s typed output plus the cookies it wants set.
Fields§
§data: TImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for ApiResponse<T>
impl<T> Freeze for ApiResponse<T>where
T: Freeze,
impl<T> Move for ApiResponse<T>
impl<T> RefUnwindSafe for ApiResponse<T>where
T: RefUnwindSafe,
impl<T> Send for ApiResponse<T>where
T: Send,
impl<T> Sync for ApiResponse<T>where
T: Sync,
impl<T> Unpin for ApiResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for ApiResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ApiResponse<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