pub struct LogBuilder { /* private fields */ }Expand description
Builder for log events.
Implementations§
Source§impl LogBuilder
impl LogBuilder
Sourcepub fn timestamp_now(self) -> Self
pub fn timestamp_now(self) -> Self
Write the current time into the payload as timestamp_epoch_ms
(milliseconds since the Unix epoch), replacing any existing value.
Only a JSON object payload has a place for the field; any other payload is left unchanged rather than wrapped, which would change the shape the caller chose.
Sourcepub fn timestamp_epoch_ms(self, timestamp_epoch_ms: i64) -> Self
pub fn timestamp_epoch_ms(self, timestamp_epoch_ms: i64) -> Self
Set the timestamp on an object payload, replacing any existing value.
Auto Trait Implementations§
impl Forget for LogBuilder
impl Freeze for LogBuilderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for LogBuilder
impl RefUnwindSafe for LogBuilder
impl Send for LogBuilder
impl Sync for LogBuilder
impl Unpin for LogBuilder
impl UnsafeUnpin for LogBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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