pub struct LogEntry {
pub time: u64,
pub remote: Option<String>,
pub method: String,
pub path: String,
pub route: Option<String>,
pub status: u16,
pub bytes: Option<usize>,
pub duration_ms: u128,
pub request_id: Option<String>,
pub trace_id: Option<String>,
pub user_agent: Option<String>,
}Expand description
One finished request, as handed to the log sink
Fields§
§time: u64§remote: Option<String>§method: String§path: String§route: Option<String>§status: u16§bytes: Option<usize>§duration_ms: u128§request_id: Option<String>§trace_id: Option<String>Trace id of TraceLayer, when installed
user_agent: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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