pub struct LogBuilder { /* private fields */ }Expand description
Fluent builder for log entries
Implementations§
Source§impl LogBuilder
impl LogBuilder
pub fn operation(self, operation: impl Into<String>) -> Self
pub fn user(self, user_id: impl Into<String>) -> Self
pub fn session(self, session_id: impl Into<String>) -> Self
pub fn trace( self, trace_id: impl Into<String>, span_id: impl Into<String>, ) -> Self
pub fn field(self, key: impl Into<String>, value: Value) -> Self
pub fn duration(self, duration_ms: f64) -> Self
pub fn source(self, file: impl Into<String>, line: u32) -> Self
pub fn send(self)
Auto Trait Implementations§
impl Freeze for LogBuilder
impl RefUnwindSafe for LogBuilder
impl Send for LogBuilder
impl Sync for LogBuilder
impl Unpin for LogBuilder
impl UnwindSafe for LogBuilder
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