pub enum UpgradeStatus {
NotChecked,
CandidateClean {
version: String,
},
CandidateVulnerable {
version: String,
advisory_ids: Capped<String>,
},
}Expand description
Result of checking whether a recommended upgrade target is itself affected.
Populated by crate::osv::OsvClient::check_candidates (phase B), which only runs for
dependencies phase A already flagged as ScanOutcome::Vulnerable. Used for both the
registry’s “latest” candidate (DependencyVulnerabilities::upgrade_status) and the
independently-verified fix target F (DependencyVulnerabilities::fix_target_status) —
see the latter’s doc for why F needs its own verification result distinct from latest’s.
Variants§
NotChecked
Phase B has not run for this dependency (phase A found nothing, or phase B has not completed yet).
CandidateClean
The candidate upgrade version is not itself affected by any known advisory.
CandidateVulnerable
The candidate upgrade version is itself affected.
Fields
advisory_ids: Capped<String>Advisory IDs that still apply to the candidate version, capped at
crate::osv::ADVISORY_DISPLAY_CAP the same way
DependencyVulnerabilities::advisories is (#462 critic M1) —
not necessarily exhaustive. Check Capped::is_complete before
treating it as the complete set of advisories still affecting this
candidate; an incomplete list means some are missing, not that none
exist.
Trait Implementations§
Source§impl Clone for UpgradeStatus
impl Clone for UpgradeStatus
Source§fn clone(&self) -> UpgradeStatus
fn clone(&self) -> UpgradeStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpgradeStatus
impl Debug for UpgradeStatus
impl Eq for UpgradeStatus
Source§impl PartialEq for UpgradeStatus
impl PartialEq for UpgradeStatus
Source§fn eq(&self, other: &UpgradeStatus) -> bool
fn eq(&self, other: &UpgradeStatus) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpgradeStatus
Auto Trait Implementations§
impl Freeze for UpgradeStatus
impl RefUnwindSafe for UpgradeStatus
impl Send for UpgradeStatus
impl Sync for UpgradeStatus
impl Unpin for UpgradeStatus
impl UnsafeUnpin for UpgradeStatus
impl UnwindSafe for UpgradeStatus
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
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
§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
§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
key and return true if they are equal.