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§
Source§impl Debug for TimestampFormat
impl Debug for TimestampFormat
Source§impl Default for TimestampFormat
impl Default for TimestampFormat
Source§fn default() -> TimestampFormat
fn default() -> TimestampFormat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TimestampFormat
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