pub struct CapturedLog {
pub level: LogLevel,
pub message: String,
pub request_id: u64,
pub captured_at: Instant,
pub fields: Vec<(String, String)>,
pub target: Option<String>,
}Expand description
A captured log entry for test assertions.
Fields§
§level: LogLevelThe log level.
message: StringThe log message.
request_id: u64Request ID associated with this log.
captured_at: InstantTimestamp when captured.
fields: Vec<(String, String)>Structured fields as key-value pairs.
target: Option<String>Target module path (if any).
Implementations§
Trait Implementations§
Source§impl Clone for CapturedLog
impl Clone for CapturedLog
Source§fn clone(&self) -> CapturedLog
fn clone(&self) -> CapturedLog
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 CapturedLog
impl RefUnwindSafe for CapturedLog
impl Send for CapturedLog
impl Sync for CapturedLog
impl Unpin for CapturedLog
impl UnwindSafe for CapturedLog
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).