pub struct CapturedRequest {
pub method: String,
pub path: String,
pub headers: Vec<(String, String)>,
pub body: Body,
}Expand description
One captured request, with full inputs.
Full input capture is the point (design doc, “Replay fidelity ceiling”): output-only logs leave ≥21% of cases unattributable, and capturing inputs buys +76% relative step-level accuracy. It is also what a counterfactual re-run needs — you cannot re-ask a question you did not record.
Fields§
§method: String§path: StringPath and query as the agent sent them, upstream origin excluded — the origin belongs to the recording session, not the exchange.
headers: Vec<(String, String)>Headers surviving [KEPT_REQUEST_HEADERS].
body: BodyTrait Implementations§
Source§impl Clone for CapturedRequest
impl Clone for CapturedRequest
Source§fn clone(&self) -> CapturedRequest
fn clone(&self) -> CapturedRequest
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 CapturedRequest
impl Debug for CapturedRequest
Source§impl<'de> Deserialize<'de> for CapturedRequest
impl<'de> Deserialize<'de> for CapturedRequest
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
Source§impl PartialEq for CapturedRequest
impl PartialEq for CapturedRequest
Source§impl Serialize for CapturedRequest
impl Serialize for CapturedRequest
impl StructuralPartialEq for CapturedRequest
Auto Trait Implementations§
impl Freeze for CapturedRequest
impl RefUnwindSafe for CapturedRequest
impl Send for CapturedRequest
impl Sync for CapturedRequest
impl Unpin for CapturedRequest
impl UnsafeUnpin for CapturedRequest
impl UnwindSafe for CapturedRequest
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