pub struct MetricMetadata {
pub refresh_interval: Option<String>,
pub unit: Option<String>,
pub threshold: Option<String>,
pub severity: Option<Severity>,
pub target: Option<String>,
pub window: Option<String>,
}Fields§
§refresh_interval: Option<String>Refresh interval in ISO 8601 duration format (e.g., “PT1H”)
unit: Option<String>§threshold: Option<String>Decimal value as string for precision
severity: Option<Severity>§target: Option<String>§window: Option<String>Trait Implementations§
Source§impl Clone for MetricMetadata
impl Clone for MetricMetadata
Source§fn clone(&self) -> MetricMetadata
fn clone(&self) -> MetricMetadata
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 MetricMetadata
impl Debug for MetricMetadata
Source§impl<'de> Deserialize<'de> for MetricMetadata
impl<'de> Deserialize<'de> for MetricMetadata
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 From<&MetricMetadata> for MetricMetadata
impl From<&MetricMetadata> for MetricMetadata
Source§fn from(m: &MetricMetadata) -> Self
fn from(m: &MetricMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MetricMetadata
impl RefUnwindSafe for MetricMetadata
impl Send for MetricMetadata
impl Sync for MetricMetadata
impl Unpin for MetricMetadata
impl UnwindSafe for MetricMetadata
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