pub struct E2ECapture {
pub method: String,
pub path: String,
pub request_headers: Vec<(String, String)>,
pub request_body: Option<String>,
pub response_status: u16,
pub response_headers: Vec<(String, String)>,
pub response_body: String,
}Expand description
A captured HTTP request/response pair from an E2E step.
Fields§
§method: StringThe request method.
path: StringThe request path.
request_headers: Vec<(String, String)>Request headers.
request_body: Option<String>Request body (if any).
response_status: u16Response status code.
response_headers: Vec<(String, String)>Response headers.
response_body: StringResponse body.
Trait Implementations§
Source§impl Clone for E2ECapture
impl Clone for E2ECapture
Source§fn clone(&self) -> E2ECapture
fn clone(&self) -> E2ECapture
Returns a duplicate of the value. Read more
1.0.0 · 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 E2ECapture
impl RefUnwindSafe for E2ECapture
impl Send for E2ECapture
impl Sync for E2ECapture
impl Unpin for E2ECapture
impl UnwindSafe for E2ECapture
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).