Struct rustsec::package::Package[][src]

pub struct Package {
    pub name: PackageName,
    pub version: Version,
    pub source: Option<String>,
    pub dependencies: Option<Vec<String>>,
}

A Rust package (i.e. crate) as structured in Cargo.lock

Fields

Name of a crate

Crate version (using semver)

Source of the crate

Dependencies of this crate

Trait Implementations

impl Clone for Package
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Package
[src]

Formats the value using the given formatter. Read more

impl Eq for Package
[src]

impl PartialEq for Package
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Package

impl Sync for Package