#[non_exhaustive]pub enum Value {
BoolValue(bool),
Int64Value(i64),
DoubleValue(f64),
StringValue(String),
DistributionValue(Box<Distribution>),
}Expand description
The value. The type of value used in the request must agree with the metric definition in the service configuration, otherwise the MetricValue is rejected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BoolValue(bool)
A boolean value.
Int64Value(i64)
A signed 64-bit integer value.
DoubleValue(f64)
A double precision floating point value.
StringValue(String)
A text string value.
DistributionValue(Box<Distribution>)
A distribution value.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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