pub struct LoggingContext {
pub request_id: String,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub additional_fields: HashMap<String, String>,
}
Expand description
Logging context for request tracing
Fields§
§request_id: String
§user_id: Option<String>
§session_id: Option<String>
§additional_fields: HashMap<String, String>
Implementations§
Trait Implementations§
Source§impl Clone for LoggingContext
impl Clone for LoggingContext
Source§fn clone(&self) -> LoggingContext
fn clone(&self) -> LoggingContext
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 moreSource§impl Debug for LoggingContext
impl Debug for LoggingContext
Auto Trait Implementations§
impl Freeze for LoggingContext
impl RefUnwindSafe for LoggingContext
impl Send for LoggingContext
impl Sync for LoggingContext
impl Unpin for LoggingContext
impl UnwindSafe for LoggingContext
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