#[non_exhaustive]pub struct RequestBasedSli {
pub method: Option<Method>,
/* private fields */
}Expand description
Service Level Indicators for which atomic units of service are counted directly.
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.method: Option<Method>The means to compute a ratio of good_service to total_service.
Implementations§
Source§impl RequestBasedSli
impl RequestBasedSli
pub fn new() -> Self
Sourcepub fn set_method<T: Into<Option<Method>>>(self, v: T) -> Self
pub fn set_method<T: Into<Option<Method>>>(self, v: T) -> Self
Sets the value of method.
Note that all the setters affecting method are mutually
exclusive.
Sourcepub fn good_total_ratio(&self) -> Option<&Box<TimeSeriesRatio>>
pub fn good_total_ratio(&self) -> Option<&Box<TimeSeriesRatio>>
The value of method
if it holds a GoodTotalRatio, None if the field is not set or
holds a different branch.
Sourcepub fn set_good_total_ratio<T: Into<Box<TimeSeriesRatio>>>(self, v: T) -> Self
pub fn set_good_total_ratio<T: Into<Box<TimeSeriesRatio>>>(self, v: T) -> Self
Sets the value of method
to hold a GoodTotalRatio.
Note that all the setters affecting method are
mutually exclusive.
Sourcepub fn distribution_cut(&self) -> Option<&Box<DistributionCut>>
pub fn distribution_cut(&self) -> Option<&Box<DistributionCut>>
The value of method
if it holds a DistributionCut, None if the field is not set or
holds a different branch.
Sourcepub fn set_distribution_cut<T: Into<Box<DistributionCut>>>(self, v: T) -> Self
pub fn set_distribution_cut<T: Into<Box<DistributionCut>>>(self, v: T) -> Self
Sets the value of method
to hold a DistributionCut.
Note that all the setters affecting method are
mutually exclusive.
Trait Implementations§
Source§impl Clone for RequestBasedSli
impl Clone for RequestBasedSli
Source§fn clone(&self) -> RequestBasedSli
fn clone(&self) -> RequestBasedSli
Returns a duplicate 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 RequestBasedSli
impl Debug for RequestBasedSli
Source§impl Default for RequestBasedSli
impl Default for RequestBasedSli
Source§fn default() -> RequestBasedSli
fn default() -> RequestBasedSli
Returns the “default value” for a type. Read more
Source§impl Message for RequestBasedSli
impl Message for RequestBasedSli
Source§impl PartialEq for RequestBasedSli
impl PartialEq for RequestBasedSli
impl StructuralPartialEq for RequestBasedSli
Auto Trait Implementations§
impl Freeze for RequestBasedSli
impl RefUnwindSafe for RequestBasedSli
impl Send for RequestBasedSli
impl Sync for RequestBasedSli
impl Unpin for RequestBasedSli
impl UnwindSafe for RequestBasedSli
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