pub struct MetricToRetain {
pub metric: String,
pub metric_dimension: Option<MetricDimension>,
}Expand description
The metric you want to retain. Dimensions are optional.
Fields§
§metric: StringWhat is measured by the behavior.
metric_dimension: Option<MetricDimension>The dimension of a metric.
Trait Implementations§
Source§impl Clone for MetricToRetain
impl Clone for MetricToRetain
Source§fn clone(&self) -> MetricToRetain
fn clone(&self) -> MetricToRetain
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 MetricToRetain
impl Debug for MetricToRetain
Source§impl Default for MetricToRetain
impl Default for MetricToRetain
Source§fn default() -> MetricToRetain
fn default() -> MetricToRetain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricToRetain
impl<'de> Deserialize<'de> for MetricToRetain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MetricToRetain
impl PartialEq for MetricToRetain
Source§impl Serialize for MetricToRetain
impl Serialize for MetricToRetain
impl StructuralPartialEq for MetricToRetain
Auto Trait Implementations§
impl Freeze for MetricToRetain
impl RefUnwindSafe for MetricToRetain
impl Send for MetricToRetain
impl Sync for MetricToRetain
impl Unpin for MetricToRetain
impl UnwindSafe for MetricToRetain
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