pub struct MatchOptions {
pub min_cvss: Option<f64>,
pub min_epss: Option<f64>,
pub kev_only: bool,
pub min_severity: Option<Severity>,
pub include_enrichment: bool,
}Expand description
Options for filtering vulnerability matches.
Fields§
§min_cvss: Option<f64>Minimum CVSS v3 score (0.0 - 10.0).
min_epss: Option<f64>Minimum EPSS score (0.0 - 1.0).
kev_only: boolOnly return KEV (actively exploited) vulnerabilities.
min_severity: Option<Severity>Minimum severity level.
include_enrichment: boolInclude enrichment data (EPSS, KEV) in results.
Implementations§
Source§impl MatchOptions
impl MatchOptions
Sourcepub fn with_enrichment() -> Self
pub fn with_enrichment() -> Self
Create options that include all vulnerabilities with enrichment.
Sourcepub fn high_severity() -> Self
pub fn high_severity() -> Self
Create options for high-severity vulnerabilities only.
Sourcepub fn exploited_only() -> Self
pub fn exploited_only() -> Self
Create options for actively exploited vulnerabilities only.
Trait Implementations§
Source§impl Clone for MatchOptions
impl Clone for MatchOptions
Source§fn clone(&self) -> MatchOptions
fn clone(&self) -> MatchOptions
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 MatchOptions
impl Debug for MatchOptions
Source§impl Default for MatchOptions
impl Default for MatchOptions
Source§fn default() -> MatchOptions
fn default() -> MatchOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MatchOptions
impl RefUnwindSafe for MatchOptions
impl Send for MatchOptions
impl Sync for MatchOptions
impl Unpin for MatchOptions
impl UnwindSafe for MatchOptions
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