pub struct ResponseSurface {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: Bytes,
pub timing_ns: u64,
}Expand description
A single HTTP interaction: full response surface and wall-clock timing.
Captures everything needed for differential analysis — status, headers, body, and timing — in one flat structure.
Fields§
§status: StatusCodeHTTP status code returned by the server.
headers: HeaderMapFull response header map.
body: BytesRaw response body bytes, serialized as a base64-encoded byte sequence.
timing_ns: u64Wall-clock response time in nanoseconds, measured from first byte sent to last byte received.
Trait Implementations§
Source§impl Clone for ResponseSurface
impl Clone for ResponseSurface
Source§fn clone(&self) -> ResponseSurface
fn clone(&self) -> ResponseSurface
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 moreSource§impl Debug for ResponseSurface
impl Debug for ResponseSurface
Source§impl<'de> Deserialize<'de> for ResponseSurface
impl<'de> Deserialize<'de> for ResponseSurface
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 ResponseSurface
impl RefUnwindSafe for ResponseSurface
impl Send for ResponseSurface
impl Sync for ResponseSurface
impl Unpin for ResponseSurface
impl UnsafeUnpin for ResponseSurface
impl UnwindSafe for ResponseSurface
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