pub struct IntervalPeriod {
pub start: DateTime<Utc>,
pub duration: Option<Duration>,
pub randomize_start: Option<Duration>,
}Expand description
Defines temporal aspects of intervals. A duration of default null indicates infinity. A randomizeStart of default null indicates no randomization.
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 · 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 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