#[non_exhaustive]pub struct DetectorDebugOptionBuilder { /* private fields */ }
Expand description
A builder for DetectorDebugOption
.
Implementations§
source§impl DetectorDebugOptionBuilder
impl DetectorDebugOptionBuilder
sourcepub fn detector_model_name(self, input: impl Into<String>) -> Self
pub fn detector_model_name(self, input: impl Into<String>) -> Self
The name of the detector model.
This field is required.sourcepub fn set_detector_model_name(self, input: Option<String>) -> Self
pub fn set_detector_model_name(self, input: Option<String>) -> Self
The name of the detector model.
sourcepub fn get_detector_model_name(&self) -> &Option<String>
pub fn get_detector_model_name(&self) -> &Option<String>
The name of the detector model.
sourcepub fn key_value(self, input: impl Into<String>) -> Self
pub fn key_value(self, input: impl Into<String>) -> Self
The value of the input attribute key used to create the detector (the instance of the detector model).
sourcepub fn set_key_value(self, input: Option<String>) -> Self
pub fn set_key_value(self, input: Option<String>) -> Self
The value of the input attribute key used to create the detector (the instance of the detector model).
sourcepub fn get_key_value(&self) -> &Option<String>
pub fn get_key_value(&self) -> &Option<String>
The value of the input attribute key used to create the detector (the instance of the detector model).
sourcepub fn build(self) -> Result<DetectorDebugOption, BuildError>
pub fn build(self) -> Result<DetectorDebugOption, BuildError>
Consumes the builder and constructs a DetectorDebugOption
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DetectorDebugOptionBuilder
impl Clone for DetectorDebugOptionBuilder
source§fn clone(&self) -> DetectorDebugOptionBuilder
fn clone(&self) -> DetectorDebugOptionBuilder
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 Debug for DetectorDebugOptionBuilder
impl Debug for DetectorDebugOptionBuilder
source§impl Default for DetectorDebugOptionBuilder
impl Default for DetectorDebugOptionBuilder
source§fn default() -> DetectorDebugOptionBuilder
fn default() -> DetectorDebugOptionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DetectorDebugOptionBuilder
impl PartialEq for DetectorDebugOptionBuilder
source§fn eq(&self, other: &DetectorDebugOptionBuilder) -> bool
fn eq(&self, other: &DetectorDebugOptionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DetectorDebugOptionBuilder
Auto Trait Implementations§
impl Freeze for DetectorDebugOptionBuilder
impl RefUnwindSafe for DetectorDebugOptionBuilder
impl Send for DetectorDebugOptionBuilder
impl Sync for DetectorDebugOptionBuilder
impl Unpin for DetectorDebugOptionBuilder
impl UnwindSafe for DetectorDebugOptionBuilder
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.