pub struct MetricValue {
pub cidrs: Option<Vec<String>>,
pub count: Option<i64>,
pub ports: Option<Vec<i64>>,
}Expand description
The value to be compared with the metric.
Fields§
§cidrs: Option<Vec<String>>If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with the metric.
count: Option<i64>If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric.
ports: Option<Vec<i64>>If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric.
Trait Implementations§
Source§impl Clone for MetricValue
impl Clone for MetricValue
Source§fn clone(&self) -> MetricValue
fn clone(&self) -> MetricValue
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 MetricValue
impl Debug for MetricValue
Source§impl Default for MetricValue
impl Default for MetricValue
Source§fn default() -> MetricValue
fn default() -> MetricValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricValue
impl<'de> Deserialize<'de> for MetricValue
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 MetricValue
impl PartialEq for MetricValue
Source§impl Serialize for MetricValue
impl Serialize for MetricValue
impl StructuralPartialEq for MetricValue
Auto Trait Implementations§
impl Freeze for MetricValue
impl RefUnwindSafe for MetricValue
impl Send for MetricValue
impl Sync for MetricValue
impl Unpin for MetricValue
impl UnwindSafe for MetricValue
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