Struct rustsec::database::Database [−][src]
pub struct Database { /* fields omitted */ }
Expand description
Database of RustSec security advisories, indexed both by ID and collection
Implementations
Load Database
from the given git::Repository
Look up an advisory by an advisory ID (e.g. “RUSTSEC-YYYY-XXXX”)
Query the database according to the given query object
pub fn query_vulnerabilities(
&self,
lockfile: &Lockfile,
query: &Query,
package_scope: impl Into<Package>
) -> Vec<Vulnerability>
pub fn query_vulnerabilities(
&self,
lockfile: &Lockfile,
query: &Query,
package_scope: impl Into<Package>
) -> Vec<Vulnerability>
Find vulnerabilities in the provided Lockfile
which match a given query.
Scan for vulnerabilities in the provided Lockfile
.
Get information about the latest commit to the repo