Enum rinfluxdb_types::InstantOrDuration [−][src]
Expand description
An entity which is either an instant or a duration
InfluxDB allows to use durations where instants are expected, and
interprets them as the point in time relative to the current instant.
E.g. if now is 2021-03-10T22:43:32Z
, the duration Duration::Minutes(-4)
is interpreted as the instant 2021-03-10T22:39:32Z
.
Variants
Instant(DateTime<Utc>)
An instant in time
Duration(Duration)
Tuple Fields
0: Duration
The instant corresponding to the current time plus a duration
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InstantOrDuration
impl Send for InstantOrDuration
impl Sync for InstantOrDuration
impl Unpin for InstantOrDuration
impl UnwindSafe for InstantOrDuration
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more