pub enum Expectation {
AtLeast {
value: MetricValue,
},
AtMost {
value: MetricValue,
},
Analyzed,
}Expand description
The constraint a check applied.
Variants§
AtLeast
The observed value must be at least value.
Fields
§
value: MetricValueThe threshold.
AtMost
The observed value must be at most value.
Fields
§
value: MetricValueThe threshold.
Analyzed
The metric must have been analyzed. No number is compared.
Trait Implementations§
Source§impl Clone for Expectation
impl Clone for Expectation
impl Copy for Expectation
Source§impl Debug for Expectation
impl Debug for Expectation
Source§impl Display for Expectation
impl Display for Expectation
Source§impl PartialEq for Expectation
impl PartialEq for Expectation
Source§impl Serialize for Expectation
impl Serialize for Expectation
impl StructuralPartialEq for Expectation
Auto Trait Implementations§
impl Freeze for Expectation
impl RefUnwindSafe for Expectation
impl Send for Expectation
impl Sync for Expectation
impl Unpin for Expectation
impl UnsafeUnpin for Expectation
impl UnwindSafe for Expectation
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