#[non_exhaustive]pub struct CustomizableMetricParametersBuilder { /* private fields */ }
Expand description
A builder for CustomizableMetricParameters
.
Implementations§
source§impl CustomizableMetricParametersBuilder
impl CustomizableMetricParametersBuilder
sourcepub fn threshold(self, input: CustomizableMetricThreshold) -> Self
pub fn threshold(self, input: CustomizableMetricThreshold) -> Self
The threshold value used for the specified metric parameter.
sourcepub fn set_threshold(self, input: Option<CustomizableMetricThreshold>) -> Self
pub fn set_threshold(self, input: Option<CustomizableMetricThreshold>) -> Self
The threshold value used for the specified metric parameter.
sourcepub fn get_threshold(&self) -> &Option<CustomizableMetricThreshold>
pub fn get_threshold(&self) -> &Option<CustomizableMetricThreshold>
The threshold value used for the specified metric parameter.
sourcepub fn headroom(self, input: CustomizableMetricHeadroom) -> Self
pub fn headroom(self, input: CustomizableMetricHeadroom) -> Self
The headroom threshold value in percentage used for the specified metric parameter.
sourcepub fn set_headroom(self, input: Option<CustomizableMetricHeadroom>) -> Self
pub fn set_headroom(self, input: Option<CustomizableMetricHeadroom>) -> Self
The headroom threshold value in percentage used for the specified metric parameter.
sourcepub fn get_headroom(&self) -> &Option<CustomizableMetricHeadroom>
pub fn get_headroom(&self) -> &Option<CustomizableMetricHeadroom>
The headroom threshold value in percentage used for the specified metric parameter.
sourcepub fn build(self) -> CustomizableMetricParameters
pub fn build(self) -> CustomizableMetricParameters
Consumes the builder and constructs a CustomizableMetricParameters
.
Trait Implementations§
source§impl Clone for CustomizableMetricParametersBuilder
impl Clone for CustomizableMetricParametersBuilder
source§fn clone(&self) -> CustomizableMetricParametersBuilder
fn clone(&self) -> CustomizableMetricParametersBuilder
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 CustomizableMetricParametersBuilder
impl Default for CustomizableMetricParametersBuilder
source§fn default() -> CustomizableMetricParametersBuilder
fn default() -> CustomizableMetricParametersBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CustomizableMetricParametersBuilder
impl PartialEq for CustomizableMetricParametersBuilder
source§fn eq(&self, other: &CustomizableMetricParametersBuilder) -> bool
fn eq(&self, other: &CustomizableMetricParametersBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomizableMetricParametersBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CustomizableMetricParametersBuilder
impl Send for CustomizableMetricParametersBuilder
impl Sync for CustomizableMetricParametersBuilder
impl Unpin for CustomizableMetricParametersBuilder
impl UnwindSafe for CustomizableMetricParametersBuilder
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>
Creates a shared type from an unshared type.