pub struct NpmScan<'a> {
pub vuln_db: Option<&'a str>,
}Expand description
Everything the npm scan path needs. npm is toolchain-free only (the Tier-C
matcher reads package-lock.json and an OSV mirror, building nothing), so unlike
GoScan there is no binary, sandbox, or online mode — just the file://<dir>
OSV mirror, absent which an npm repo is an honest gap.
Fields§
§vuln_db: Option<&'a str>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NpmScan<'a>
impl<'a> RefUnwindSafe for NpmScan<'a>
impl<'a> Send for NpmScan<'a>
impl<'a> Sync for NpmScan<'a>
impl<'a> Unpin for NpmScan<'a>
impl<'a> UnsafeUnpin for NpmScan<'a>
impl<'a> UnwindSafe for NpmScan<'a>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more