pub struct RequestFacts {
pub call_index: usize,
pub has_tool_results: bool,
pub paths: Vec<String>,
pub body: Value,
}Expand description
Facts derived from one incoming request, handed to the responder.
Fields§
§call_index: usize0-based index of this call (0 = first call the mock received).
has_tool_results: boolWhether the request carries tool results from a previous turn
(Anthropic: tool_result content blocks; OpenAI: role: "tool" messages).
paths: Vec<String>Absolute paths extracted from a Files: section in any string message
content (the multi-file lazy-load convention). At most 2, in order.
body: ValueThe full parsed request body.
Trait Implementations§
Source§impl Clone for RequestFacts
impl Clone for RequestFacts
Source§fn clone(&self) -> RequestFacts
fn clone(&self) -> RequestFacts
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 moreAuto Trait Implementations§
impl Freeze for RequestFacts
impl RefUnwindSafe for RequestFacts
impl Send for RequestFacts
impl Sync for RequestFacts
impl Unpin for RequestFacts
impl UnsafeUnpin for RequestFacts
impl UnwindSafe for RequestFacts
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