pub enum TimestampType {
Chrono,
Unix,
}
Expand description
An enum representing the different types of timestamps that can be used in log messages.
Variants§
Chrono
A timestamp in the format “YYYY-MM-DD HH:MM:SS”.
Unix
A Unix timestamp (the number of seconds since January 1, 1970).
Trait Implementations§
Source§impl Clone for TimestampType
impl Clone for TimestampType
Source§fn clone(&self) -> TimestampType
fn clone(&self) -> TimestampType
Returns a copy 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 moreimpl Copy for TimestampType
Auto Trait Implementations§
impl Freeze for TimestampType
impl RefUnwindSafe for TimestampType
impl Send for TimestampType
impl Sync for TimestampType
impl Unpin for TimestampType
impl UnwindSafe for TimestampType
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