pub struct Response {
pub status: u16,
pub headers: BTreeMap<String, String>,
pub body_summary: String,
pub server_unix_ts: Option<i64>,
pub elapsed_ms: Option<u64>,
}Expand description
Sanitized HTTP response. Absent on Case (i.e. Case::response is
None) for connection-layer failures where no response was received.
Fields§
§status: u16§headers: BTreeMap<String, String>§body_summary: String§server_unix_ts: Option<i64>§elapsed_ms: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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