#[non_exhaustive]pub struct DetectorModelDefinitionBuilder { /* private fields */ }
Expand description
A builder for DetectorModelDefinition
.
Implementations§
source§impl DetectorModelDefinitionBuilder
impl DetectorModelDefinitionBuilder
sourcepub fn states(self, input: State) -> Self
pub fn states(self, input: State) -> Self
Appends an item to states
.
To override the contents of this collection use set_states
.
Information about the states of the detector.
sourcepub fn set_states(self, input: Option<Vec<State>>) -> Self
pub fn set_states(self, input: Option<Vec<State>>) -> Self
Information about the states of the detector.
sourcepub fn get_states(&self) -> &Option<Vec<State>>
pub fn get_states(&self) -> &Option<Vec<State>>
Information about the states of the detector.
sourcepub fn initial_state_name(self, input: impl Into<String>) -> Self
pub fn initial_state_name(self, input: impl Into<String>) -> Self
The state that is entered at the creation of each detector (instance).
This field is required.sourcepub fn set_initial_state_name(self, input: Option<String>) -> Self
pub fn set_initial_state_name(self, input: Option<String>) -> Self
The state that is entered at the creation of each detector (instance).
sourcepub fn get_initial_state_name(&self) -> &Option<String>
pub fn get_initial_state_name(&self) -> &Option<String>
The state that is entered at the creation of each detector (instance).
sourcepub fn build(self) -> Result<DetectorModelDefinition, BuildError>
pub fn build(self) -> Result<DetectorModelDefinition, BuildError>
Consumes the builder and constructs a DetectorModelDefinition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DetectorModelDefinitionBuilder
impl Clone for DetectorModelDefinitionBuilder
source§fn clone(&self) -> DetectorModelDefinitionBuilder
fn clone(&self) -> DetectorModelDefinitionBuilder
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 Default for DetectorModelDefinitionBuilder
impl Default for DetectorModelDefinitionBuilder
source§fn default() -> DetectorModelDefinitionBuilder
fn default() -> DetectorModelDefinitionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DetectorModelDefinitionBuilder
impl PartialEq for DetectorModelDefinitionBuilder
source§fn eq(&self, other: &DetectorModelDefinitionBuilder) -> bool
fn eq(&self, other: &DetectorModelDefinitionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DetectorModelDefinitionBuilder
Auto Trait Implementations§
impl Freeze for DetectorModelDefinitionBuilder
impl RefUnwindSafe for DetectorModelDefinitionBuilder
impl Send for DetectorModelDefinitionBuilder
impl Sync for DetectorModelDefinitionBuilder
impl Unpin for DetectorModelDefinitionBuilder
impl UnwindSafe for DetectorModelDefinitionBuilder
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> 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 moreCreates a shared type from an unshared type.