pub struct FixRecommendation {
pub version: String,
pub advisory_ids: Vec<String>,
}Expand description
A single upgrade target recommended by DependencyVulnerabilities::recommended_fix.
version is in OSV’s version namespace (see
crate::lsp_helpers::OsvNaming::osv_version_to_native for the
conversion callers must apply before using it in a manifest edit or a
registry lookup).
Fields§
§version: StringThe highest Advisory::fixed_versions entry across the advisories
named in advisory_ids — the lowest version that resolves everything
this recommendation actually claims to fix.
advisory_ids: Vec<String>Advisory ids this recommendation actually resolves, sorted by severity descending (worst first) and tied by id — the order a title should list them in.
Trait Implementations§
Source§impl Clone for FixRecommendation
impl Clone for FixRecommendation
Source§fn clone(&self) -> FixRecommendation
fn clone(&self) -> FixRecommendation
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 FixRecommendation
impl Debug for FixRecommendation
impl Eq for FixRecommendation
Source§impl PartialEq for FixRecommendation
impl PartialEq for FixRecommendation
Source§fn eq(&self, other: &FixRecommendation) -> bool
fn eq(&self, other: &FixRecommendation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FixRecommendation
Auto Trait Implementations§
impl Freeze for FixRecommendation
impl RefUnwindSafe for FixRecommendation
impl Send for FixRecommendation
impl Sync for FixRecommendation
impl Unpin for FixRecommendation
impl UnsafeUnpin for FixRecommendation
impl UnwindSafe for FixRecommendation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.