Enum CmpValue
pub enum CmpValue {
Number(u64),
String(String),
Duration(String),
}Expand description
The right-hand operand of a MatchPredicate::Compare.
Variants§
Number(u64)
A numeric literal (e.g. a status code or size).
String(String)
A string literal.
Duration(String)
A duration literal (e.g. 500ms), compared against response_time.
Trait Implementations§
impl StructuralPartialEq for CmpValue
Auto Trait Implementations§
impl Freeze for CmpValue
impl RefUnwindSafe for CmpValue
impl Send for CmpValue
impl Sync for CmpValue
impl Unpin for CmpValue
impl UnsafeUnpin for CmpValue
impl UnwindSafe for CmpValue
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