pub struct PersistenceWindowConfiguration { /* private fields */ }
Expand description
Configures how long a condition has to be true for to output a time range, and what to use as the start of the output range. For a point to be included in the output time range, both the minPoints and minDuration conditions must be satisfied.
Implementations§
Source§impl PersistenceWindowConfiguration
impl PersistenceWindowConfiguration
Sourcepub fn builder() -> Builder<OutputRangeStartStage>
pub fn builder() -> Builder<OutputRangeStartStage>
Returns a new builder.
Source§impl PersistenceWindowConfiguration
impl PersistenceWindowConfiguration
Sourcepub fn new(output_range_start: OutputRangeStart) -> Self
pub fn new(output_range_start: OutputRangeStart) -> Self
Constructs a new instance of the type.
Sourcepub fn min_points(&self) -> Option<&IntegerConstant>
pub fn min_points(&self) -> Option<&IntegerConstant>
The minimum number of points for which this condition be must satisfied to include the time range in the output. Must be non-negative. If not present, will default to 1.
Sourcepub fn min_duration(&self) -> Option<&DurationConstant>
pub fn min_duration(&self) -> Option<&DurationConstant>
The minimum number of points for which this condition must be satisfied to include the time range in the output. Must be non-negative. If not present, will default to 1 nanosecond.
Sourcepub fn output_range_start(&self) -> &OutputRangeStart
pub fn output_range_start(&self) -> &OutputRangeStart
Which point to use as the start of the output range. Defaults to firstPointMatchingCondition if not specified.
Trait Implementations§
Source§impl Clone for PersistenceWindowConfiguration
impl Clone for PersistenceWindowConfiguration
Source§fn clone(&self) -> PersistenceWindowConfiguration
fn clone(&self) -> PersistenceWindowConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for PersistenceWindowConfiguration
impl<'de> Deserialize<'de> for PersistenceWindowConfiguration
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>,
Source§impl From<PersistenceWindowConfiguration> for Builder<Complete>
impl From<PersistenceWindowConfiguration> for Builder<Complete>
Source§fn from(v: PersistenceWindowConfiguration) -> Self
fn from(v: PersistenceWindowConfiguration) -> Self
Source§impl Ord for PersistenceWindowConfiguration
impl Ord for PersistenceWindowConfiguration
Source§fn cmp(&self, other: &PersistenceWindowConfiguration) -> Ordering
fn cmp(&self, other: &PersistenceWindowConfiguration) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PersistenceWindowConfiguration
impl PartialEq for PersistenceWindowConfiguration
Source§fn eq(&self, other: &PersistenceWindowConfiguration) -> bool
fn eq(&self, other: &PersistenceWindowConfiguration) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for PersistenceWindowConfiguration
impl PartialOrd for PersistenceWindowConfiguration
impl Eq for PersistenceWindowConfiguration
impl StructuralPartialEq for PersistenceWindowConfiguration
Auto Trait Implementations§
impl Freeze for PersistenceWindowConfiguration
impl RefUnwindSafe for PersistenceWindowConfiguration
impl Send for PersistenceWindowConfiguration
impl Sync for PersistenceWindowConfiguration
impl Unpin for PersistenceWindowConfiguration
impl UnwindSafe for PersistenceWindowConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request