#[non_exhaustive]pub struct ConditionBasedCollectionScheme {
pub expression: String,
pub minimum_trigger_interval_ms: Option<i64>,
pub trigger_mode: Option<TriggerMode>,
pub condition_language_version: Option<i32>,
}
Expand description
Information about a collection scheme that uses a simple logical expression to recognize what data to collect.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.expression: String
The logical expression used to recognize what data to collect. For example, $variable.Vehicle.OutsideAirTemperature >= 105.0
.
minimum_trigger_interval_ms: Option<i64>
The minimum duration of time between two triggering events to collect data, in milliseconds.
If a signal changes often, you might want to collect data at a slower rate.
trigger_mode: Option<TriggerMode>
Whether to collect data for all triggering events (ALWAYS
). Specify (RISING_EDGE
), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.
condition_language_version: Option<i32>
Specifies the version of the conditional expression language.
Implementations§
source§impl ConditionBasedCollectionScheme
impl ConditionBasedCollectionScheme
sourcepub fn expression(&self) -> &str
pub fn expression(&self) -> &str
The logical expression used to recognize what data to collect. For example, $variable.Vehicle.OutsideAirTemperature >= 105.0
.
sourcepub fn minimum_trigger_interval_ms(&self) -> Option<i64>
pub fn minimum_trigger_interval_ms(&self) -> Option<i64>
The minimum duration of time between two triggering events to collect data, in milliseconds.
If a signal changes often, you might want to collect data at a slower rate.
sourcepub fn trigger_mode(&self) -> Option<&TriggerMode>
pub fn trigger_mode(&self) -> Option<&TriggerMode>
Whether to collect data for all triggering events (ALWAYS
). Specify (RISING_EDGE
), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.
sourcepub fn condition_language_version(&self) -> Option<i32>
pub fn condition_language_version(&self) -> Option<i32>
Specifies the version of the conditional expression language.
source§impl ConditionBasedCollectionScheme
impl ConditionBasedCollectionScheme
sourcepub fn builder() -> ConditionBasedCollectionSchemeBuilder
pub fn builder() -> ConditionBasedCollectionSchemeBuilder
Creates a new builder-style object to manufacture ConditionBasedCollectionScheme
.
Trait Implementations§
source§impl Clone for ConditionBasedCollectionScheme
impl Clone for ConditionBasedCollectionScheme
source§fn clone(&self) -> ConditionBasedCollectionScheme
fn clone(&self) -> ConditionBasedCollectionScheme
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ConditionBasedCollectionScheme
impl PartialEq for ConditionBasedCollectionScheme
source§fn eq(&self, other: &ConditionBasedCollectionScheme) -> bool
fn eq(&self, other: &ConditionBasedCollectionScheme) -> bool
self
and other
values to be equal, and is used
by ==
.