Enum tracing_ndjson::TimestampFormat
source · pub enum TimestampFormat {
Unix,
UnixMillis,
Rfc3339,
Rfc3339Nanos,
Custom(String),
}Expand description
A timestamp format for the JSON formatter. This is used to format the timestamp field in the JSON output. The default is RFC3339.
Variants§
Unix
Seconds since UNIX_EPOCH
UnixMillis
Milliseconds since UNIX_EPOCH
Rfc3339
RFC3339
Rfc3339Nanos
RFC3339 with nanoseconds
Custom(String)
Custom format string. This should be a valid format string for chrono.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TimestampFormat
impl Send for TimestampFormat
impl Sync for TimestampFormat
impl Unpin for TimestampFormat
impl UnwindSafe for TimestampFormat
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