#[non_exhaustive]pub struct MetricValueSet {
pub metric_name: String,
pub metric_values: Vec<MetricValue>,
/* private fields */
}Expand description
Represents a set of metric values in the same metric. Each metric value in the set should have a unique combination of start time, end time, and label values.
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.metric_name: StringThe metric name defined in the service configuration.
metric_values: Vec<MetricValue>The values in this metric.
Implementations§
Source§impl MetricValueSet
impl MetricValueSet
pub fn new() -> Self
Sourcepub fn set_metric_name<T: Into<String>>(self, v: T) -> Self
pub fn set_metric_name<T: Into<String>>(self, v: T) -> Self
Sets the value of metric_name.
Sourcepub fn set_metric_values<T, V>(self, v: T) -> Self
pub fn set_metric_values<T, V>(self, v: T) -> Self
Sets the value of metric_values.
Trait Implementations§
Source§impl Clone for MetricValueSet
impl Clone for MetricValueSet
Source§fn clone(&self) -> MetricValueSet
fn clone(&self) -> MetricValueSet
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 MetricValueSet
impl Debug for MetricValueSet
Source§impl Default for MetricValueSet
impl Default for MetricValueSet
Source§fn default() -> MetricValueSet
fn default() -> MetricValueSet
Returns the “default value” for a type. Read more
Source§impl Message for MetricValueSet
impl Message for MetricValueSet
Source§impl PartialEq for MetricValueSet
impl PartialEq for MetricValueSet
impl StructuralPartialEq for MetricValueSet
Auto Trait Implementations§
impl Freeze for MetricValueSet
impl RefUnwindSafe for MetricValueSet
impl Send for MetricValueSet
impl Sync for MetricValueSet
impl Unpin for MetricValueSet
impl UnwindSafe for MetricValueSet
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