#[non_exhaustive]pub struct CustomizableMetricParameters {
pub threshold: Option<CustomizableMetricThreshold>,
pub headroom: Option<CustomizableMetricHeadroom>,
}
Expand description
Defines the various metric parameters that can be customized, such as threshold and headroom.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.threshold: Option<CustomizableMetricThreshold>
The threshold value used for the specified metric parameter.
headroom: Option<CustomizableMetricHeadroom>
The headroom threshold value in percentage used for the specified metric parameter.
Implementations§
source§impl CustomizableMetricParameters
impl CustomizableMetricParameters
sourcepub fn threshold(&self) -> Option<&CustomizableMetricThreshold>
pub fn threshold(&self) -> Option<&CustomizableMetricThreshold>
The threshold value used for the specified metric parameter.
sourcepub fn headroom(&self) -> Option<&CustomizableMetricHeadroom>
pub fn headroom(&self) -> Option<&CustomizableMetricHeadroom>
The headroom threshold value in percentage used for the specified metric parameter.
source§impl CustomizableMetricParameters
impl CustomizableMetricParameters
sourcepub fn builder() -> CustomizableMetricParametersBuilder
pub fn builder() -> CustomizableMetricParametersBuilder
Creates a new builder-style object to manufacture CustomizableMetricParameters
.
Trait Implementations§
source§impl Clone for CustomizableMetricParameters
impl Clone for CustomizableMetricParameters
source§fn clone(&self) -> CustomizableMetricParameters
fn clone(&self) -> CustomizableMetricParameters
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 CustomizableMetricParameters
impl Debug for CustomizableMetricParameters
source§impl PartialEq for CustomizableMetricParameters
impl PartialEq for CustomizableMetricParameters
source§fn eq(&self, other: &CustomizableMetricParameters) -> bool
fn eq(&self, other: &CustomizableMetricParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomizableMetricParameters
Auto Trait Implementations§
impl Freeze for CustomizableMetricParameters
impl RefUnwindSafe for CustomizableMetricParameters
impl Send for CustomizableMetricParameters
impl Sync for CustomizableMetricParameters
impl Unpin for CustomizableMetricParameters
impl UnwindSafe for CustomizableMetricParameters
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.