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.
Fields§
§status: StatusCodeVerbatim server-returned code — never normalized or synthesized.
headers: HeaderMapComplete response headers, including multi-valued entries.
body: BytesBody bytes. Base64-encoded when serialized.
timing_ns: u64Wall-clock round-trip in nanoseconds.
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 (const: unstable) · 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