#[non_exhaustive]pub struct HistoricalMetricDataBuilder { /* private fields */ }
Expand description
A builder for HistoricalMetricData
.
Implementations§
source§impl HistoricalMetricDataBuilder
impl HistoricalMetricDataBuilder
sourcepub fn metric(self, input: HistoricalMetric) -> Self
pub fn metric(self, input: HistoricalMetric) -> Self
Information about the metric.
sourcepub fn set_metric(self, input: Option<HistoricalMetric>) -> Self
pub fn set_metric(self, input: Option<HistoricalMetric>) -> Self
Information about the metric.
sourcepub fn get_metric(&self) -> &Option<HistoricalMetric>
pub fn get_metric(&self) -> &Option<HistoricalMetric>
Information about the metric.
sourcepub fn build(self) -> HistoricalMetricData
pub fn build(self) -> HistoricalMetricData
Consumes the builder and constructs a HistoricalMetricData
.
Trait Implementations§
source§impl Clone for HistoricalMetricDataBuilder
impl Clone for HistoricalMetricDataBuilder
source§fn clone(&self) -> HistoricalMetricDataBuilder
fn clone(&self) -> HistoricalMetricDataBuilder
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 HistoricalMetricDataBuilder
impl Debug for HistoricalMetricDataBuilder
source§impl Default for HistoricalMetricDataBuilder
impl Default for HistoricalMetricDataBuilder
source§fn default() -> HistoricalMetricDataBuilder
fn default() -> HistoricalMetricDataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HistoricalMetricDataBuilder
impl PartialEq for HistoricalMetricDataBuilder
source§fn eq(&self, other: &HistoricalMetricDataBuilder) -> bool
fn eq(&self, other: &HistoricalMetricDataBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HistoricalMetricDataBuilder
Auto Trait Implementations§
impl Freeze for HistoricalMetricDataBuilder
impl RefUnwindSafe for HistoricalMetricDataBuilder
impl Send for HistoricalMetricDataBuilder
impl Sync for HistoricalMetricDataBuilder
impl Unpin for HistoricalMetricDataBuilder
impl UnwindSafe for HistoricalMetricDataBuilder
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.