pub struct NestingConfig {
pub enabled: bool,
pub max_depth: usize,
pub ignore_patterns: Vec<String>,
}Expand description
Configuration for deep nesting detection.
Fields§
§enabled: boolWhether this detector is enabled.
max_depth: usizeMaximum allowed nesting depth before reporting.
ignore_patterns: Vec<String>Glob patterns for routines to ignore.
Trait Implementations§
Source§impl Clone for NestingConfig
impl Clone for NestingConfig
Source§fn clone(&self) -> NestingConfig
fn clone(&self) -> NestingConfig
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 NestingConfig
impl Debug for NestingConfig
Source§impl Default for NestingConfig
impl Default for NestingConfig
Source§impl<'de> Deserialize<'de> for NestingConfigwhere
NestingConfig: Default,
impl<'de> Deserialize<'de> for NestingConfigwhere
NestingConfig: Default,
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 NestingConfig
impl RefUnwindSafe for NestingConfig
impl Send for NestingConfig
impl Sync for NestingConfig
impl Unpin for NestingConfig
impl UnwindSafe for NestingConfig
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