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 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 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§fn eq(&self, other: &EventInterval) -> bool
fn eq(&self, other: &EventInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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§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