Struct crates_index_diff::CrateVersion
source · pub struct CrateVersion {
pub name: String,
pub yanked: bool,
pub version: String,
pub checksum: [u8; 32],
pub features: HashMap<String, Vec<String>>,
pub dependencies: Vec<Dependency>,
}
Expand description
Pack all information we know about a change made to a version of a crate.
Fields§
§name: String
The crate name, i.e. clap
.
yanked: bool
is the release yanked?
version: String
The semantic version of the crate.
checksum: [u8; 32]
The checksum over the crate archive
features: HashMap<String, Vec<String>>
All cargo features
dependencies: Vec<Dependency>
All crate dependencies
Trait Implementations§
source§impl Clone for CrateVersion
impl Clone for CrateVersion
source§fn clone(&self) -> CrateVersion
fn clone(&self) -> CrateVersion
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 moresource§impl Debug for CrateVersion
impl Debug for CrateVersion
source§impl Default for CrateVersion
impl Default for CrateVersion
source§fn default() -> CrateVersion
fn default() -> CrateVersion
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CrateVersion
impl<'de> Deserialize<'de> for CrateVersion
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for CrateVersion
impl PartialEq for CrateVersion
source§fn eq(&self, other: &CrateVersion) -> bool
fn eq(&self, other: &CrateVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CrateVersion
impl Serialize for CrateVersion
impl Eq for CrateVersion
impl StructuralPartialEq for CrateVersion
Auto Trait Implementations§
impl Freeze for CrateVersion
impl RefUnwindSafe for CrateVersion
impl Send for CrateVersion
impl Sync for CrateVersion
impl Unpin for CrateVersion
impl UnwindSafe for CrateVersion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more