pub enum VersionMatching {
ServerSide,
LocalUnversioned,
}Expand description
Where an OsvEcosystem’s queried version is matched against advisory ranges.
OSV.dev returns {} for a version-carrying query in the GitHub Actions ecosystem even
when the version is inside an advisory’s affected range (issue #1675), so a versioned query
there reads as a false “clean”. Self::LocalUnversioned ecosystems are queried without
version and matched locally against each record’s affected[].ranges.
Variants§
ServerSide
OSV.dev matches version server-side; the query carries it.
LocalUnversioned
The query omits version; advisory ranges are matched locally against the in-use version.
Trait Implementations§
Source§impl Clone for VersionMatching
impl Clone for VersionMatching
impl Copy for VersionMatching
Source§impl Debug for VersionMatching
impl Debug for VersionMatching
impl Eq for VersionMatching
Source§impl PartialEq for VersionMatching
impl PartialEq for VersionMatching
impl StructuralPartialEq for VersionMatching
Auto Trait Implementations§
impl Freeze for VersionMatching
impl RefUnwindSafe for VersionMatching
impl Send for VersionMatching
impl Sync for VersionMatching
impl Unpin for VersionMatching
impl UnsafeUnpin for VersionMatching
impl UnwindSafe for VersionMatching
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.