pub struct JsonHttpRequest {
pub url: String,
pub headers: Vec<(String, String)>,
pub body: Value,
}Expand description
JSON HTTP request emitted by a live provider adapter.
The request body may contain provider-visible prompt material, so callers should treat captured values as test-only or privacy-governed diagnostics.
Fields§
§url: StringAbsolute provider endpoint URL.
headers: Vec<(String, String)>HTTP headers for the request. Secret-bearing headers should not be persisted in fixtures or public diagnostics.
body: ValueJSON request body sent to the provider.
Implementations§
Trait Implementations§
Source§impl Clone for JsonHttpRequest
impl Clone for JsonHttpRequest
Source§fn clone(&self) -> JsonHttpRequest
fn clone(&self) -> JsonHttpRequest
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 JsonHttpRequest
impl Debug for JsonHttpRequest
Source§impl PartialEq for JsonHttpRequest
impl PartialEq for JsonHttpRequest
Source§fn eq(&self, other: &JsonHttpRequest) -> bool
fn eq(&self, other: &JsonHttpRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JsonHttpRequest
Auto Trait Implementations§
impl Freeze for JsonHttpRequest
impl RefUnwindSafe for JsonHttpRequest
impl Send for JsonHttpRequest
impl Sync for JsonHttpRequest
impl Unpin for JsonHttpRequest
impl UnsafeUnpin for JsonHttpRequest
impl UnwindSafe for JsonHttpRequest
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