pub struct VulnerabilityAdvisory {
pub id: String,
pub affected_packages: Vec<(String, String)>,
pub severity: Severity,
pub description: String,
pub fixed_version: Option<String>,
}Expand description
A vulnerability advisory for one or more packages.
Fields§
§id: StringCVE or advisory identifier (e.g. “CVE-2024-12345”).
affected_packages: Vec<(String, String)>Affected packages as (package_name, affected_version_range) pairs.
severity: SeveritySeverity of the vulnerability.
description: StringHuman-readable description.
fixed_version: Option<String>Version that fixes the vulnerability, if known.
Trait Implementations§
Source§impl Clone for VulnerabilityAdvisory
impl Clone for VulnerabilityAdvisory
Source§fn clone(&self) -> VulnerabilityAdvisory
fn clone(&self) -> VulnerabilityAdvisory
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VulnerabilityAdvisory
impl RefUnwindSafe for VulnerabilityAdvisory
impl Send for VulnerabilityAdvisory
impl Sync for VulnerabilityAdvisory
impl Unpin for VulnerabilityAdvisory
impl UnwindSafe for VulnerabilityAdvisory
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)