pub struct UnwrapRuleConfig {
pub enabled: bool,
pub threshold: usize,
pub nuclear_threshold: usize,
}Fields§
§enabled: bool§threshold: usizeMinimum unwrap count to trigger report (default: 1)
nuclear_threshold: usizeNuclear level threshold (default: 15)
Trait Implementations§
Source§impl Clone for UnwrapRuleConfig
impl Clone for UnwrapRuleConfig
Source§fn clone(&self) -> UnwrapRuleConfig
fn clone(&self) -> UnwrapRuleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnwrapRuleConfig
impl Debug for UnwrapRuleConfig
Source§impl Default for UnwrapRuleConfig
impl Default for UnwrapRuleConfig
Source§impl<'de> Deserialize<'de> for UnwrapRuleConfig
impl<'de> Deserialize<'de> for UnwrapRuleConfig
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 UnwrapRuleConfig
impl RefUnwindSafe for UnwrapRuleConfig
impl Send for UnwrapRuleConfig
impl Sync for UnwrapRuleConfig
impl Unpin for UnwrapRuleConfig
impl UnsafeUnpin for UnwrapRuleConfig
impl UnwindSafe for UnwrapRuleConfig
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