pub enum SkipReason {
NonRegistrySource,
NoConcreteVersion,
UnmappableName,
UnmappableEcosystem,
QueryFailed,
Truncated,
}Expand description
Why a dependency produced no advisories.
Absence from VulnerabilityMap is never a synonym for “clean” — every
input to crate::osv::OsvClient::scan gets an entry, and every filtered-out or
failed path must declare itself as one of these reasons rather than
silently vanishing from the map (architecture.md §6, §8 invariant 0).
Variants§
NonRegistrySource
dep.source() was not crate::parser::DependencySource::Registry (§3 step 0).
NoConcreteVersion
No lockfile-resolved or concrete version was available (§3 steps 1-3).
UnmappableName
EcosystemFormatter::osv_package_name returned None.
UnmappableEcosystem
EcosystemId::osv_ecosystem returned None.
QueryFailed
The batch or single-package query failed (network error, non-2xx, malformed JSON, or a chunk whose result count did not match its query count).
Truncated
The batch result was truncated (next_page_token present) and the
bounded individual-requery budget was exhausted before this entry
could be recovered (§8 invariant 2).
Trait Implementations§
Source§impl Clone for SkipReason
impl Clone for SkipReason
Source§fn clone(&self) -> SkipReason
fn clone(&self) -> SkipReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SkipReason
Source§impl Debug for SkipReason
impl Debug for SkipReason
impl Eq for SkipReason
Source§impl PartialEq for SkipReason
impl PartialEq for SkipReason
Source§fn eq(&self, other: &SkipReason) -> bool
fn eq(&self, other: &SkipReason) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SkipReason
Auto Trait Implementations§
impl Freeze for SkipReason
impl RefUnwindSafe for SkipReason
impl Send for SkipReason
impl Sync for SkipReason
impl Unpin for SkipReason
impl UnsafeUnpin for SkipReason
impl UnwindSafe for SkipReason
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.