pub struct ResponseContent<T> {
pub status: StatusCode,
pub content: String,
pub entity: Option<T>,
}Expand description
Response content from a failed API call.
Fields§
§status: StatusCodeHTTP status code of the response.
content: StringRaw response body content.
entity: Option<T>Deserialized entity from the response.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ResponseContent<T>where
T: Freeze,
impl<T> RefUnwindSafe for ResponseContent<T>where
T: RefUnwindSafe,
impl<T> Send for ResponseContent<T>where
T: Send,
impl<T> Sync for ResponseContent<T>where
T: Sync,
impl<T> Unpin for ResponseContent<T>where
T: Unpin,
impl<T> UnwindSafe for ResponseContent<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