#[non_exhaustive]pub struct ConditionBasedCollectionSchemeBuilder { /* private fields */ }Expand description
A builder for ConditionBasedCollectionScheme.
Implementations§
source§impl ConditionBasedCollectionSchemeBuilder
impl ConditionBasedCollectionSchemeBuilder
sourcepub fn expression(self, input: impl Into<String>) -> Self
pub fn expression(self, input: impl Into<String>) -> Self
The logical expression used to recognize what data to collect. For example, $variable.`Vehicle.OutsideAirTemperature` >= 105.0.
sourcepub fn set_expression(self, input: Option<String>) -> Self
pub fn set_expression(self, input: Option<String>) -> Self
The logical expression used to recognize what data to collect. For example, $variable.`Vehicle.OutsideAirTemperature` >= 105.0.
sourcepub fn get_expression(&self) -> &Option<String>
pub fn get_expression(&self) -> &Option<String>
The logical expression used to recognize what data to collect. For example, $variable.`Vehicle.OutsideAirTemperature` >= 105.0.
sourcepub fn minimum_trigger_interval_ms(self, input: i64) -> Self
pub fn minimum_trigger_interval_ms(self, input: i64) -> Self
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 set_minimum_trigger_interval_ms(self, input: Option<i64>) -> Self
pub fn set_minimum_trigger_interval_ms(self, input: Option<i64>) -> Self
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 get_minimum_trigger_interval_ms(&self) -> &Option<i64>
pub fn get_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, input: TriggerMode) -> Self
pub fn trigger_mode(self, input: TriggerMode) -> Self
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 set_trigger_mode(self, input: Option<TriggerMode>) -> Self
pub fn set_trigger_mode(self, input: Option<TriggerMode>) -> Self
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 get_trigger_mode(&self) -> &Option<TriggerMode>
pub fn get_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, input: i32) -> Self
pub fn condition_language_version(self, input: i32) -> Self
Specifies the version of the conditional expression language.
sourcepub fn set_condition_language_version(self, input: Option<i32>) -> Self
pub fn set_condition_language_version(self, input: Option<i32>) -> Self
Specifies the version of the conditional expression language.
sourcepub fn get_condition_language_version(&self) -> &Option<i32>
pub fn get_condition_language_version(&self) -> &Option<i32>
Specifies the version of the conditional expression language.
sourcepub fn build(self) -> Result<ConditionBasedCollectionScheme, BuildError>
pub fn build(self) -> Result<ConditionBasedCollectionScheme, BuildError>
Consumes the builder and constructs a ConditionBasedCollectionScheme.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ConditionBasedCollectionSchemeBuilder
impl Clone for ConditionBasedCollectionSchemeBuilder
source§fn clone(&self) -> ConditionBasedCollectionSchemeBuilder
fn clone(&self) -> ConditionBasedCollectionSchemeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ConditionBasedCollectionSchemeBuilder
impl Default for ConditionBasedCollectionSchemeBuilder
source§fn default() -> ConditionBasedCollectionSchemeBuilder
fn default() -> ConditionBasedCollectionSchemeBuilder
source§impl PartialEq for ConditionBasedCollectionSchemeBuilder
impl PartialEq for ConditionBasedCollectionSchemeBuilder
source§fn eq(&self, other: &ConditionBasedCollectionSchemeBuilder) -> bool
fn eq(&self, other: &ConditionBasedCollectionSchemeBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ConditionBasedCollectionSchemeBuilder
Auto Trait Implementations§
impl Freeze for ConditionBasedCollectionSchemeBuilder
impl RefUnwindSafe for ConditionBasedCollectionSchemeBuilder
impl Send for ConditionBasedCollectionSchemeBuilder
impl Sync for ConditionBasedCollectionSchemeBuilder
impl Unpin for ConditionBasedCollectionSchemeBuilder
impl UnwindSafe for ConditionBasedCollectionSchemeBuilder
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> 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>
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>
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