pub struct ResponseMetadata {
pub status: u16,
pub headers: HashMap<String, String>,
pub elapsed: Duration,
pub size: Option<usize>,
}
Expand description
HTTP response metadata
Fields§
§status: u16
HTTP status code
headers: HashMap<String, String>
Response headers
elapsed: Duration
Request duration
size: Option<usize>
Response size in bytes
Implementations§
Trait Implementations§
Source§impl Clone for ResponseMetadata
impl Clone for ResponseMetadata
Source§fn clone(&self) -> ResponseMetadata
fn clone(&self) -> ResponseMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ResponseMetadata
impl RefUnwindSafe for ResponseMetadata
impl Send for ResponseMetadata
impl Sync for ResponseMetadata
impl Unpin for ResponseMetadata
impl UnwindSafe for ResponseMetadata
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