pub enum TimestampFormat {
Iso8601,
Iso8601Date,
Iso8601DateTime,
UnixMs,
UnixSec,
Relative,
Rfc2822,
Rfc3339,
}Expand description
Timestamp format options.
Controls how timestamps are displayed in query results and subscriptions.
Default format is ISO 8601 with milliseconds (2024-12-14T15:30:45.123Z).
Variants§
Iso8601
ISO 8601 with milliseconds: 2024-12-14T15:30:45.123Z
This is the default and most widely compatible format.
Iso8601Date
ISO 8601 date only: 2024-12-14
Iso8601DateTime
ISO 8601 without milliseconds: 2024-12-14T15:30:45Z
UnixMs
Unix timestamp in milliseconds: 1734211234567
UnixSec
Unix timestamp in seconds: 1734211234
Relative
Relative time: 2 hours ago, in 5 minutes
Rfc2822
RFC 2822 format: Fri, 14 Dec 2024 15:30:45 +0000
Rfc3339
RFC 3339 format (same as ISO 8601): 2024-12-14T15:30:45.123+00:00
Trait Implementations§
Source§impl Clone for TimestampFormat
impl Clone for TimestampFormat
Source§fn clone(&self) -> TimestampFormat
fn clone(&self) -> TimestampFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimestampFormat
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
Source§impl<'de> Deserialize<'de> for TimestampFormat
impl<'de> Deserialize<'de> for TimestampFormat
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimestampFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimestampFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TimestampFormat
impl Display for TimestampFormat
impl Eq for TimestampFormat
Source§impl PartialEq for TimestampFormat
impl PartialEq for TimestampFormat
Source§fn eq(&self, other: &TimestampFormat) -> bool
fn eq(&self, other: &TimestampFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TimestampFormat
impl Serialize for TimestampFormat
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TimestampFormat
Auto Trait Implementations§
impl Freeze for TimestampFormat
impl RefUnwindSafe for TimestampFormat
impl Send for TimestampFormat
impl Sync for TimestampFormat
impl Unpin for TimestampFormat
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.