pub struct PolicyThresholds {
pub very_high: Option<u32>,
pub high: Option<u32>,
pub medium: Option<u32>,
pub low: Option<u32>,
pub very_low: Option<u32>,
pub score_threshold: Option<f64>,
}Expand description
Policy compliance thresholds
Fields§
§very_high: Option<u32>Maximum allowed Very High severity flaws
high: Option<u32>Maximum allowed High severity flaws
medium: Option<u32>Maximum allowed Medium severity flaws
low: Option<u32>Maximum allowed Low severity flaws
very_low: Option<u32>Maximum allowed Very Low severity flaws
score_threshold: Option<f64>Overall score threshold
Trait Implementations§
Source§impl Clone for PolicyThresholds
impl Clone for PolicyThresholds
Source§fn clone(&self) -> PolicyThresholds
fn clone(&self) -> PolicyThresholds
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyThresholds
impl Debug for PolicyThresholds
Source§impl<'de> Deserialize<'de> for PolicyThresholds
impl<'de> Deserialize<'de> for PolicyThresholds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PolicyThresholds
impl RefUnwindSafe for PolicyThresholds
impl Send for PolicyThresholds
impl Sync for PolicyThresholds
impl Unpin for PolicyThresholds
impl UnwindSafe for PolicyThresholds
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