#[non_exhaustive]pub struct TimestampMetricValuePairBuilder { /* private fields */ }
Expand description
A builder for TimestampMetricValuePair
.
Implementations§
source§impl TimestampMetricValuePairBuilder
impl TimestampMetricValuePairBuilder
sourcepub fn timestamp(self, input: DateTime) -> Self
pub fn timestamp(self, input: DateTime) -> Self
A Timestamp
that specifies the time the event occurred.
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
A Timestamp
that specifies the time the event occurred.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
A Timestamp
that specifies the time the event occurred.
sourcepub fn metric_value(self, input: f64) -> Self
pub fn metric_value(self, input: f64) -> Self
Value of the anomalous metric data point at respective Timestamp.
sourcepub fn set_metric_value(self, input: Option<f64>) -> Self
pub fn set_metric_value(self, input: Option<f64>) -> Self
Value of the anomalous metric data point at respective Timestamp.
sourcepub fn get_metric_value(&self) -> &Option<f64>
pub fn get_metric_value(&self) -> &Option<f64>
Value of the anomalous metric data point at respective Timestamp.
sourcepub fn build(self) -> TimestampMetricValuePair
pub fn build(self) -> TimestampMetricValuePair
Consumes the builder and constructs a TimestampMetricValuePair
.
Trait Implementations§
source§impl Clone for TimestampMetricValuePairBuilder
impl Clone for TimestampMetricValuePairBuilder
source§fn clone(&self) -> TimestampMetricValuePairBuilder
fn clone(&self) -> TimestampMetricValuePairBuilder
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 TimestampMetricValuePairBuilder
impl Default for TimestampMetricValuePairBuilder
source§fn default() -> TimestampMetricValuePairBuilder
fn default() -> TimestampMetricValuePairBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TimestampMetricValuePairBuilder
impl PartialEq for TimestampMetricValuePairBuilder
source§fn eq(&self, other: &TimestampMetricValuePairBuilder) -> bool
fn eq(&self, other: &TimestampMetricValuePairBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TimestampMetricValuePairBuilder
Auto Trait Implementations§
impl Freeze for TimestampMetricValuePairBuilder
impl RefUnwindSafe for TimestampMetricValuePairBuilder
impl Send for TimestampMetricValuePairBuilder
impl Sync for TimestampMetricValuePairBuilder
impl Unpin for TimestampMetricValuePairBuilder
impl UnwindSafe for TimestampMetricValuePairBuilder
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.