pub struct IntervalPeriod {
pub start: DateTime<Utc>,
pub duration: Option<Duration>,
pub randomize_start: Option<Duration>,
}Expand description
Defines temporal aspects of intervals.
A start of “0001-01-01” or “0001-01-01T00:00:00” may indicate ‘now’. See User Guide. A duration of “P9999Y” may indicate infinity. See User Guide. A randomizeStart indicates absolute range of client applied offset to start. See User Guide.
Fields§
§start: DateTime<Utc>The start time of an interval or set of intervals.
duration: Option<Duration>The duration of an interval or set of intervals.
randomize_start: Option<Duration>Indicates a randomization time that may be applied to start.
Implementations§
Trait Implementations§
Source§impl Clone for IntervalPeriod
impl Clone for IntervalPeriod
Source§fn clone(&self) -> IntervalPeriod
fn clone(&self) -> IntervalPeriod
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 moreSource§impl Debug for IntervalPeriod
impl Debug for IntervalPeriod
Source§impl<'de> Deserialize<'de> for IntervalPeriod
impl<'de> Deserialize<'de> for IntervalPeriod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IntervalPeriod
impl PartialEq for IntervalPeriod
Source§impl Serialize for IntervalPeriod
impl Serialize for IntervalPeriod
impl StructuralPartialEq for IntervalPeriod
Auto Trait Implementations§
impl Freeze for IntervalPeriod
impl RefUnwindSafe for IntervalPeriod
impl Send for IntervalPeriod
impl Sync for IntervalPeriod
impl Unpin for IntervalPeriod
impl UnsafeUnpin for IntervalPeriod
impl UnwindSafe for IntervalPeriod
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more