pub struct OsvProviderConfig {
pub configured: bool,
pub include_dev_deps: bool,
pub cache_ttl: String,
pub enabled_ecosystems: Vec<OsvEcosystem>,
pub severity_overrides: HashMap<String, Severity>,
pub ignore_list: Vec<String>,
pub offline: bool,
pub cache_dir: Option<PathBuf>,
}Expand description
OSV provider configuration (multi-language dependency vulnerability scanning)
Fields§
§configured: boolWhether OSV provider is configured
include_dev_deps: boolInclude dev dependencies in scan (default: false)
cache_ttl: StringCache TTL as duration string (default: “24h”) Supported formats: “1h”, “30m”, “24h”, “7d”
enabled_ecosystems: Vec<OsvEcosystem>Enabled ecosystems (default: all)
severity_overrides: HashMap<String, Severity>Severity overrides by OSV ID or CVE ID e.g., “GHSA-xxx” -> “warning”, “CVE-2024-xxx” -> “info”
ignore_list: Vec<String>Allowlist/ignore list by OSV ID or CVE ID Vulnerabilities in this list will not be reported
offline: boolOffline mode - use cache only, no network requests
cache_dir: Option<PathBuf>Custom cache directory (default: .rma/cache)
Trait Implementations§
Source§impl Clone for OsvProviderConfig
impl Clone for OsvProviderConfig
Source§fn clone(&self) -> OsvProviderConfig
fn clone(&self) -> OsvProviderConfig
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 OsvProviderConfig
impl Debug for OsvProviderConfig
Source§impl Default for OsvProviderConfig
impl Default for OsvProviderConfig
Source§impl<'de> Deserialize<'de> for OsvProviderConfig
impl<'de> Deserialize<'de> for OsvProviderConfig
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 OsvProviderConfig
impl RefUnwindSafe for OsvProviderConfig
impl Send for OsvProviderConfig
impl Sync for OsvProviderConfig
impl Unpin for OsvProviderConfig
impl UnwindSafe for OsvProviderConfig
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