#[non_exhaustive]pub struct HistoricalMetricResultBuilder { /* private fields */ }
Expand description
A builder for HistoricalMetricResult
.
Implementations§
source§impl HistoricalMetricResultBuilder
impl HistoricalMetricResultBuilder
sourcepub fn dimensions(self, input: Dimensions) -> Self
pub fn dimensions(self, input: Dimensions) -> Self
The dimension for the metrics.
sourcepub fn set_dimensions(self, input: Option<Dimensions>) -> Self
pub fn set_dimensions(self, input: Option<Dimensions>) -> Self
The dimension for the metrics.
sourcepub fn get_dimensions(&self) -> &Option<Dimensions>
pub fn get_dimensions(&self) -> &Option<Dimensions>
The dimension for the metrics.
sourcepub fn collections(self, input: HistoricalMetricData) -> Self
pub fn collections(self, input: HistoricalMetricData) -> Self
Appends an item to collections
.
To override the contents of this collection use set_collections
.
The set of metrics.
sourcepub fn set_collections(self, input: Option<Vec<HistoricalMetricData>>) -> Self
pub fn set_collections(self, input: Option<Vec<HistoricalMetricData>>) -> Self
The set of metrics.
sourcepub fn get_collections(&self) -> &Option<Vec<HistoricalMetricData>>
pub fn get_collections(&self) -> &Option<Vec<HistoricalMetricData>>
The set of metrics.
sourcepub fn build(self) -> HistoricalMetricResult
pub fn build(self) -> HistoricalMetricResult
Consumes the builder and constructs a HistoricalMetricResult
.
Trait Implementations§
source§impl Clone for HistoricalMetricResultBuilder
impl Clone for HistoricalMetricResultBuilder
source§fn clone(&self) -> HistoricalMetricResultBuilder
fn clone(&self) -> HistoricalMetricResultBuilder
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 HistoricalMetricResultBuilder
impl Default for HistoricalMetricResultBuilder
source§fn default() -> HistoricalMetricResultBuilder
fn default() -> HistoricalMetricResultBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HistoricalMetricResultBuilder
impl PartialEq for HistoricalMetricResultBuilder
source§fn eq(&self, other: &HistoricalMetricResultBuilder) -> bool
fn eq(&self, other: &HistoricalMetricResultBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HistoricalMetricResultBuilder
Auto Trait Implementations§
impl Freeze for HistoricalMetricResultBuilder
impl RefUnwindSafe for HistoricalMetricResultBuilder
impl Send for HistoricalMetricResultBuilder
impl Sync for HistoricalMetricResultBuilder
impl Unpin for HistoricalMetricResultBuilder
impl UnwindSafe for HistoricalMetricResultBuilder
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.