pub struct ScanOptions {Show 13 fields
pub min_severity: Option<Severity>,
pub fail_on: Option<Severity>,
pub rules_dir: Option<PathBuf>,
pub profile: Option<PolicyProfile>,
pub baseline_path: Option<PathBuf>,
pub waivers_path: Option<PathBuf>,
pub policy_path: Option<PathBuf>,
pub disposition_path: Option<PathBuf>,
pub include_rules: Vec<String>,
pub exclude_rules: Vec<String>,
pub recursive: bool,
pub target_mode: ScanTargetMode,
pub strict_rules: bool,
}Fields§
§min_severity: Option<Severity>§fail_on: Option<Severity>§rules_dir: Option<PathBuf>§profile: Option<PolicyProfile>§baseline_path: Option<PathBuf>§waivers_path: Option<PathBuf>§policy_path: Option<PathBuf>§disposition_path: Option<PathBuf>Project-local analyst-feedback overlay. #[serde(default)]:
additive — old serialised ScanOptions still deserialise.
include_rules: Vec<String>§exclude_rules: Vec<String>§recursive: bool§target_mode: ScanTargetMode§strict_rules: boolWhen true, a duplicate rule id encountered while loading an external pack is promoted from a tracing warning to a hard error. Useful in CI to catch pack-authoring mistakes early. Default: false (warn only).
Trait Implementations§
Source§impl Clone for ScanOptions
impl Clone for ScanOptions
Source§fn clone(&self) -> ScanOptions
fn clone(&self) -> ScanOptions
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 ScanOptions
impl Debug for ScanOptions
Source§impl Default for ScanOptions
impl Default for ScanOptions
Source§impl<'de> Deserialize<'de> for ScanOptions
impl<'de> Deserialize<'de> for ScanOptions
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 ScanOptions
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnsafeUnpin for ScanOptions
impl UnwindSafe for ScanOptions
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