pub enum ValueType {
Scalar,
Vector,
Matrix,
String,
}Expand description
Value types for function arguments and return values.
PromQL has four fundamental value types that functions operate on.
Variants§
Scalar
Scalar value (single number).
Vector
Instant vector (set of time series with single sample each).
Matrix
Range vector (set of time series with samples over time range).
String
String value.
Trait Implementations§
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
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