pub struct ScanOptions {
pub config_path: Option<PathBuf>,
pub format: OutputFormat,
pub fail_on_override: Option<Severity>,
pub ignore_tests: bool,
pub custom_rules_dir: Option<PathBuf>,
}Expand description
Options for a scan invocation.
Fields§
§config_path: Option<PathBuf>Path to config file (defaults to .agentshield.toml in scan dir).
format: OutputFormatPreferred output format for callers that render the resulting ScanReport.
fail_on_override: Option<Severity>CLI override for fail_on threshold.
ignore_tests: boolSkip test files (test/, tests/, *.test.ts, *.spec.ts, etc.).
custom_rules_dir: Option<PathBuf>Optional directory containing custom declarative rules (*.yaml, *.yml, *.json).
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
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