Struct rustsec::osv::OsvAdvisory
source · pub struct OsvAdvisory { /* private fields */ }Available on crate feature
osv-export only.Expand description
Security advisory in the format defined by https://github.com/google/osv
Implementations§
source§impl OsvAdvisory
impl OsvAdvisory
sourcepub fn from_rustsec(
advisory: Advisory,
mod_times: &GitModificationTimes,
path: GitPath<'_>
) -> Self
pub fn from_rustsec( advisory: Advisory, mod_times: &GitModificationTimes, path: GitPath<'_> ) -> Self
Converts a single RustSec advisory to OSV format.
path is the path to the advisory file. It must be relative to the git repository root.
Trait Implementations§
source§impl Clone for OsvAdvisory
impl Clone for OsvAdvisory
source§fn clone(&self) -> OsvAdvisory
fn clone(&self) -> OsvAdvisory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more