pub struct Request {
pub method: String,
pub url: String,
pub headers: BTreeMap<String, String>,
pub body_summary: String,
pub client_unix_ts: Option<i64>,
pub timeout_ms: Option<u64>,
}Expand description
Sanitized HTTP request as authored in the fixture file.
Fields§
§method: String§url: String§headers: BTreeMap<String, String>BTreeMap rather than HashMap so the iteration order is stable
for snapshot tests. Header lookups are O(log n) but with ~6
headers per fixture that’s irrelevant.
body_summary: StringOne-line summary of the request body. Sensitive values are masked
with *** at fixture-authoring time; the diagnoser does not
further redact.
client_unix_ts: Option<i64>§timeout_ms: Option<u64>Client-side timeout budget. Compared against
Context::elapsed_ms_before_abort to detect timeouts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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