#[non_exhaustive]pub struct Checked {
pub threshold: Threshold,
pub warning: Option<LimitWarning>,
}Expand description
A successfully validated Threshold, together with any advisory
the limit raised.
A limit that is legal but cannot do what its author presumably
meant — outside the metric’s domain, or sitting on the domain edge
where it can never fire — is accepted with a LimitWarning rather
than rejected, because the 2.x CLI already accepts such limits and
tightening the grammar is reserved for a major release.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.threshold: ThresholdThe validated threshold.
warning: Option<LimitWarning>An advisory to surface to the user, if the limit raised one.
Trait Implementations§
impl Copy for Checked
impl StructuralPartialEq for Checked
Auto Trait Implementations§
impl Freeze for Checked
impl RefUnwindSafe for Checked
impl Send for Checked
impl Sync for Checked
impl Unpin for Checked
impl UnsafeUnpin for Checked
impl UnwindSafe for Checked
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