pub struct EventInterval {
pub id: i32,
pub interval_period: Option<IntervalPeriod>,
pub payloads: Vec<EventValuesMap>,
}Expand description
An object defining a temporal window and a list of valuesMaps. if intervalPeriod present may set temporal aspects of interval or override event.intervalPeriod.
Fields§
§id: i32A client generated number assigned an interval object. Not a sequence number.
interval_period: Option<IntervalPeriod>Defines default start and durations of intervals.
payloads: Vec<EventValuesMap>A list of valuesMap objects.
Implementations§
Source§impl EventInterval
impl EventInterval
pub fn new(id: i32, payloads: Vec<EventValuesMap>) -> Self
Trait Implementations§
Source§impl Clone for EventInterval
impl Clone for EventInterval
Source§fn clone(&self) -> EventInterval
fn clone(&self) -> EventInterval
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 moreSource§impl Debug for EventInterval
impl Debug for EventInterval
Source§impl Default for EventInterval
impl Default for EventInterval
Source§fn default() -> EventInterval
fn default() -> EventInterval
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventInterval
impl<'de> Deserialize<'de> for EventInterval
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 EventInterval
impl PartialEq for EventInterval
Source§impl Serialize for EventInterval
impl Serialize for EventInterval
Source§impl Validate for EventInterval
impl Validate for EventInterval
Source§impl<'v_a> ValidateArgs<'v_a> for EventInterval
impl<'v_a> ValidateArgs<'v_a> for EventInterval
impl StructuralPartialEq for EventInterval
Auto Trait Implementations§
impl Freeze for EventInterval
impl RefUnwindSafe for EventInterval
impl Send for EventInterval
impl Sync for EventInterval
impl Unpin for EventInterval
impl UnwindSafe for EventInterval
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)