pub struct APIResponse { /* private fields */ }Expand description
A captured HTTP response. The full body is read once at construction and
cached, so APIResponse::body, APIResponse::text, and
APIResponse::json are cheap and re-entrant.
Implementations§
Source§impl APIResponse
impl APIResponse
Trait Implementations§
Source§impl Clone for APIResponse
impl Clone for APIResponse
Source§fn clone(&self) -> APIResponse
fn clone(&self) -> APIResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for APIResponse
impl RefUnwindSafe for APIResponse
impl Send for APIResponse
impl Sync for APIResponse
impl Unpin for APIResponse
impl UnsafeUnpin for APIResponse
impl UnwindSafe for APIResponse
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