pub struct TestServerLogEntry {
pub method: String,
pub path: String,
pub status: u16,
pub duration: Duration,
pub timestamp: Instant,
}Expand description
A log entry recorded by TestServer for each processed request.
This provides structured logging of all HTTP traffic flowing through the test server, useful for debugging test failures.
Fields§
§method: StringHTTP method (e.g., “GET”, “POST”).
path: StringRequest path (e.g., “/api/users”).
status: u16Response status code.
duration: DurationTime taken to process the request through the App pipeline.
timestamp: InstantWhen this request was received.
Trait Implementations§
Source§impl Clone for TestServerLogEntry
impl Clone for TestServerLogEntry
Source§fn clone(&self) -> TestServerLogEntry
fn clone(&self) -> TestServerLogEntry
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 TestServerLogEntry
impl RefUnwindSafe for TestServerLogEntry
impl Send for TestServerLogEntry
impl Sync for TestServerLogEntry
impl Unpin for TestServerLogEntry
impl UnwindSafe for TestServerLogEntry
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).