#[non_exhaustive]pub struct SamplingStatisticSummaryBuilder { /* private fields */ }
Expand description
A builder for SamplingStatisticSummary
.
Implementations§
source§impl SamplingStatisticSummaryBuilder
impl SamplingStatisticSummaryBuilder
sourcepub fn set_rule_name(self, input: Option<String>) -> Self
pub fn set_rule_name(self, input: Option<String>) -> Self
The name of the sampling rule.
sourcepub fn get_rule_name(&self) -> &Option<String>
pub fn get_rule_name(&self) -> &Option<String>
The name of the sampling rule.
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
The start time of the reporting window.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
The start time of the reporting window.
sourcepub fn request_count(self, input: i32) -> Self
pub fn request_count(self, input: i32) -> Self
The number of requests that matched the rule.
sourcepub fn set_request_count(self, input: Option<i32>) -> Self
pub fn set_request_count(self, input: Option<i32>) -> Self
The number of requests that matched the rule.
sourcepub fn get_request_count(&self) -> &Option<i32>
pub fn get_request_count(&self) -> &Option<i32>
The number of requests that matched the rule.
sourcepub fn borrow_count(self, input: i32) -> Self
pub fn borrow_count(self, input: i32) -> Self
The number of requests recorded with borrowed reservoir quota.
sourcepub fn set_borrow_count(self, input: Option<i32>) -> Self
pub fn set_borrow_count(self, input: Option<i32>) -> Self
The number of requests recorded with borrowed reservoir quota.
sourcepub fn get_borrow_count(&self) -> &Option<i32>
pub fn get_borrow_count(&self) -> &Option<i32>
The number of requests recorded with borrowed reservoir quota.
sourcepub fn sampled_count(self, input: i32) -> Self
pub fn sampled_count(self, input: i32) -> Self
The number of requests recorded.
sourcepub fn set_sampled_count(self, input: Option<i32>) -> Self
pub fn set_sampled_count(self, input: Option<i32>) -> Self
The number of requests recorded.
sourcepub fn get_sampled_count(&self) -> &Option<i32>
pub fn get_sampled_count(&self) -> &Option<i32>
The number of requests recorded.
sourcepub fn build(self) -> SamplingStatisticSummary
pub fn build(self) -> SamplingStatisticSummary
Consumes the builder and constructs a SamplingStatisticSummary
.
Trait Implementations§
source§impl Clone for SamplingStatisticSummaryBuilder
impl Clone for SamplingStatisticSummaryBuilder
source§fn clone(&self) -> SamplingStatisticSummaryBuilder
fn clone(&self) -> SamplingStatisticSummaryBuilder
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 SamplingStatisticSummaryBuilder
impl Default for SamplingStatisticSummaryBuilder
source§fn default() -> SamplingStatisticSummaryBuilder
fn default() -> SamplingStatisticSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SamplingStatisticSummaryBuilder
impl PartialEq for SamplingStatisticSummaryBuilder
source§fn eq(&self, other: &SamplingStatisticSummaryBuilder) -> bool
fn eq(&self, other: &SamplingStatisticSummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SamplingStatisticSummaryBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SamplingStatisticSummaryBuilder
impl Send for SamplingStatisticSummaryBuilder
impl Sync for SamplingStatisticSummaryBuilder
impl Unpin for SamplingStatisticSummaryBuilder
impl UnwindSafe for SamplingStatisticSummaryBuilder
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.