#[non_exhaustive]pub enum Expectation {
#[non_exhaustive] AtLeast {
value: MetricValue,
},
#[non_exhaustive] AtMost {
value: MetricValue,
},
Analyzed,
#[non_exhaustive] ChangeAtLeast {
value: MetricValue,
},
#[non_exhaustive] ChangeAtMost {
value: MetricValue,
},
Present,
InBaseline,
}Expand description
The constraint a check applied.
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.
#[non_exhaustive]AtLeast
The observed value must be at least value.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
value: MetricValueThe threshold.
#[non_exhaustive]AtMost
The observed value must be at most value.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
value: MetricValueThe threshold.
Analyzed
The metric must have been analyzed. No number is compared.
#[non_exhaustive]ChangeAtLeast
The change from the baseline, observed minus the baseline’s value,
must be at least value points. A permitted drop is a negative value.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
value: MetricValueThe threshold, in points.
#[non_exhaustive]ChangeAtMost
The change from the baseline must be at most value points.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
value: MetricValueThe threshold, in points.
Present
The column must be profiled. No number is compared.
InBaseline
The column must be one the baseline profiled. 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