pub struct HttpResponse { /* private fields */ }
Expand description
Representation of HTTP API response.
Wraps Reqwest lib’s Response
Implementations§
Source§impl HttpResponse
impl HttpResponse
pub fn new(inner: Response) -> Self
pub fn is_success(&self) -> bool
pub async fn deserialize<T: DeserializeOwned>(self) -> Result<T, ApiError>
Auto Trait Implementations§
impl !Freeze for HttpResponse
impl !RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl !UnwindSafe for HttpResponse
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