[−][src]Struct auditable_serde::Package
A single package in the dependency tree
Fields
name: String
Crate name specified in the name
field in Cargo.toml file. Examples: "libc", "rand"
version: Version
source: String
Currently "git", "local" or "registry". Designed to be extensible with other revision control systems, etc.
May be extended in the future to record a specific revision, e.g. git-sha1+90ac1a1e8b072e0d595c63db39875b371397173d
kind: DependencyKind
"build" or "runtime". If it's both a build and a runtime dependency, "runtime" is recorded.
dependencies: Vec<usize>
Packages are stored in an ordered array both in the VersionInfo
struct and in JSON.
Here we refer to each package by its index in the array.
features: Vec<String>
List of features, identical to the way cargo metadata
presents them.
The feature "default" will also be recorded unless --no-default-features
is used.
Trait Implementations
impl Clone for Package
[src]
impl Debug for Package
[src]
impl<'de> Deserialize<'de> for Package
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Package
[src]
impl Ord for Package
[src]
fn cmp(&self, other: &Package) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Package> for Package
[src]
impl PartialOrd<Package> for Package
[src]
fn partial_cmp(&self, other: &Package) -> Option<Ordering>
[src]
fn lt(&self, other: &Package) -> bool
[src]
fn le(&self, other: &Package) -> bool
[src]
fn gt(&self, other: &Package) -> bool
[src]
fn ge(&self, other: &Package) -> bool
[src]
impl Serialize for Package
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Package
[src]
impl StructuralPartialEq for Package
[src]
impl<'_> TryInto<Dependency> for &'_ Package
[src]
Auto Trait Implementations
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,