#[non_exhaustive]pub enum FindingPolicyError {
ThresholdOutOfRange {
setting: &'static str,
value: f64,
},
}Expand description
A finding threshold that cannot be applied as written.
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.
ThresholdOutOfRange
A threshold fell outside (0, 100] at the 2dp precision it is applied
at, or was not a finite number. Percentages are on the report’s 0..100
scale, not 0..1 ratios, and a zero threshold would report every column.
Trait Implementations§
Source§impl Clone for FindingPolicyError
impl Clone for FindingPolicyError
Source§impl Debug for FindingPolicyError
impl Debug for FindingPolicyError
Source§impl Display for FindingPolicyError
impl Display for FindingPolicyError
Source§impl Error for FindingPolicyError
impl Error for FindingPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FindingPolicyError
impl PartialEq for FindingPolicyError
impl StructuralPartialEq for FindingPolicyError
Auto Trait Implementations§
impl Freeze for FindingPolicyError
impl RefUnwindSafe for FindingPolicyError
impl Send for FindingPolicyError
impl Sync for FindingPolicyError
impl Unpin for FindingPolicyError
impl UnsafeUnpin for FindingPolicyError
impl UnwindSafe for FindingPolicyError
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