pub struct CveCatalog { /* private fields */ }Expand description
In-memory catalog of caller-supplied CVE records.
Implementations§
Source§impl CveCatalog
impl CveCatalog
pub fn new() -> Self
pub fn record( &mut self, record: CVERecord, ) -> Result<Option<CVERecord>, InvalidCvssScore>
pub fn get(&self, cve_id: &str) -> Option<&CVERecord>
Sourcepub fn records_at_or_above_cvss(&self, minimum: f32) -> Option<Vec<&CVERecord>>
pub fn records_at_or_above_cvss(&self, minimum: f32) -> Option<Vec<&CVERecord>>
Filters valid caller-supplied scores using an explicit valid threshold.
Sourcepub fn records_with_reported_exploit_evidence(&self) -> Vec<&CVERecord>
pub fn records_with_reported_exploit_evidence(&self) -> Vec<&CVERecord>
Returns records whose caller-supplied exploit flags contain evidence.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for CveCatalog
impl Clone for CveCatalog
Source§fn clone(&self) -> CveCatalog
fn clone(&self) -> CveCatalog
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 CveCatalog
impl Debug for CveCatalog
Source§impl Default for CveCatalog
impl Default for CveCatalog
Source§fn default() -> CveCatalog
fn default() -> CveCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CveCatalog
impl RefUnwindSafe for CveCatalog
impl Send for CveCatalog
impl Sync for CveCatalog
impl Unpin for CveCatalog
impl UnsafeUnpin for CveCatalog
impl UnwindSafe for CveCatalog
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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