Struct update_crates_test_bin::VersionMetadata
source · pub(crate) struct VersionMetadata {
pub(crate) name: String,
pub(crate) vers: String,
pub(crate) deps: Vec<DependencyMetadata>,
pub(crate) cksum: String,
pub(crate) features: BTreeMap<String, Vec<String>>,
pub(crate) yanked: bool,
pub(crate) links: Option<String>,
}
Expand description
from https://doc.rust-lang.org/cargo/reference/registries.html:
Each line in a package file contains a JSON object that describes a published version of the package.
Fields§
§name: String
The name of the package. This must only contain alphanumeric, -
, or _
characters.
vers: String
The version of the package this row is describing. This must be a valid version number according to the Semantic Versioning 2.0.0 spec at https://semver.org/.
deps: Vec<DependencyMetadata>
Array of direct dependencies of the package.
cksum: String
A SHA256 checksum of the .crate
file.
features: BTreeMap<String, Vec<String>>
Set of features defined for the package. Each feature maps to an array of features or dependencies it enables.
yanked: bool
Boolean of whether or not this version has been yanked.
links: Option<String>
The links
string value from the package’s manifest, or null if not specified. This field
is optional and defaults to null.
Trait Implementations§
source§impl Clone for VersionMetadata
impl Clone for VersionMetadata
source§fn clone(&self) -> VersionMetadata
fn clone(&self) -> VersionMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VersionMetadata
impl Debug for VersionMetadata
source§impl<'de> Deserialize<'de> for VersionMetadata
impl<'de> Deserialize<'de> for VersionMetadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Hash for VersionMetadata
impl Hash for VersionMetadata
source§impl Ord for VersionMetadata
impl Ord for VersionMetadata
source§fn cmp(&self, other: &VersionMetadata) -> Ordering
fn cmp(&self, other: &VersionMetadata) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<VersionMetadata> for VersionMetadata
impl PartialEq<VersionMetadata> for VersionMetadata
source§fn eq(&self, other: &VersionMetadata) -> bool
fn eq(&self, other: &VersionMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VersionMetadata> for VersionMetadata
impl PartialOrd<VersionMetadata> for VersionMetadata
source§fn partial_cmp(&self, other: &VersionMetadata) -> Option<Ordering>
fn partial_cmp(&self, other: &VersionMetadata) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more