#[non_exhaustive]pub enum FilterValue {
String(String),
Number(f64),
Duration(Duration),
Bytes(u64),
Ip(String),
}Expand description
The right-hand side value of a label filter.
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.
String(String)
A quoted string (used with =, !=, =~, !~, and ==).
Number(f64)
A numeric literal.
Duration(Duration)
A duration literal such as 1s or 500ms.
Bytes(u64)
A bytes literal such as 20KB or 5MB, in bytes.
Ip(String)
An ip("...") matcher (single address, CIDR, or range).
Trait Implementations§
Source§impl Clone for FilterValue
impl Clone for FilterValue
Source§impl Debug for FilterValue
impl Debug for FilterValue
Source§impl PartialEq for FilterValue
impl PartialEq for FilterValue
impl StructuralPartialEq for FilterValue
Auto Trait Implementations§
impl Freeze for FilterValue
impl RefUnwindSafe for FilterValue
impl Send for FilterValue
impl Sync for FilterValue
impl Unpin for FilterValue
impl UnsafeUnpin for FilterValue
impl UnwindSafe for FilterValue
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