Struct cargo_lock::package::Package
source · pub struct Package {
pub name: Name,
pub version: Version,
pub source: Option<SourceId>,
pub checksum: Option<Checksum>,
pub dependencies: Vec<Dependency>,
pub replace: Option<Dependency>,
}
Expand description
Information about a Rust package (as sourced from Cargo.lock
)
Fields§
§name: Name
Name of the package
version: Version
Version of the package
source: Option<SourceId>
Source identifier for the package
checksum: Option<Checksum>
Checksum for this package
dependencies: Vec<Dependency>
Dependencies of the package
replace: Option<Dependency>
Replace directive
Trait Implementations§
source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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 From<&Package> for Dependency
impl From<&Package> for Dependency
source§fn from(pkg: &Package) -> Dependency
fn from(pkg: &Package) -> Dependency
Get the Dependency
requirement for this [[package]]
source§impl Ord for Package
impl Ord for Package
source§impl PartialEq<Package> for Package
impl PartialEq<Package> for Package
source§impl PartialOrd<Package> for Package
impl PartialOrd<Package> for Package
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Package
impl StructuralEq for Package
impl StructuralPartialEq for Package
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§
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.