pub enum MetricValueKind {
Show 30 variants
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
Float(f32),
Double(f64),
Boolean(bool),
String(String),
DateTime(DateTime),
Text(String),
Uuid(String),
Bytes(Vec<u8>),
File(Vec<u8>),
Int8Array(Vec<i8>),
Int16Array(Vec<i16>),
Int32Array(Vec<i32>),
Int64Array(Vec<i64>),
UInt8Array(Vec<u8>),
UInt16Array(Vec<u16>),
UInt32Array(Vec<u32>),
UInt64Array(Vec<u64>),
FloatArray(Vec<f32>),
DoubleArray(Vec<f64>),
BooleanArray(Vec<bool>),
StringArray(Vec<String>),
DateTimeArray(Vec<DateTime>),
}Variants§
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
UInt8(u8)
UInt16(u16)
UInt32(u32)
UInt64(u64)
Float(f32)
Double(f64)
Boolean(bool)
String(String)
DateTime(DateTime)
Text(String)
Uuid(String)
Bytes(Vec<u8>)
File(Vec<u8>)
Int8Array(Vec<i8>)
Int16Array(Vec<i16>)
Int32Array(Vec<i32>)
Int64Array(Vec<i64>)
UInt8Array(Vec<u8>)
UInt16Array(Vec<u16>)
UInt32Array(Vec<u32>)
UInt64Array(Vec<u64>)
FloatArray(Vec<f32>)
DoubleArray(Vec<f64>)
BooleanArray(Vec<bool>)
StringArray(Vec<String>)
DateTimeArray(Vec<DateTime>)
Implementations§
Source§impl MetricValueKind
impl MetricValueKind
pub fn try_from_metric_value( datatype: DataType, value: MetricValue, ) -> Result<Self, FromMetricValueError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricValueKind
impl RefUnwindSafe for MetricValueKind
impl Send for MetricValueKind
impl Sync for MetricValueKind
impl Unpin for MetricValueKind
impl UnwindSafe for MetricValueKind
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