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 PartialOrd for Package
impl PartialOrd for Package
impl Eq for Package
impl StructuralPartialEq for Package
Auto Trait Implementations§
impl Freeze for Package
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.