pub struct WithResponse<T> {
pub data: T,
pub status: StatusCode,
pub headers: HeaderMap,
pub request_id: Option<String>,
}Expand description
Parsed data with its HTTP status, headers and request ID.
Fields§
§data: TThe parsed response body.
status: StatusCodeThe HTTP status.
headers: HeaderMapThe response headers.
request_id: Option<String>Request ID from x-typesafe-request-id.
Trait Implementations§
Source§impl<T: Clone> Clone for WithResponse<T>
impl<T: Clone> Clone for WithResponse<T>
Auto Trait Implementations§
impl<T> Freeze for WithResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithResponse<T>where
T: RefUnwindSafe,
impl<T> Send for WithResponse<T>where
T: Send,
impl<T> Sync for WithResponse<T>where
T: Sync,
impl<T> Unpin for WithResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for WithResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WithResponse<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