pub struct ResolvedPackage {
pub name: String,
pub version: String,
pub url: String,
pub hash: String,
pub dependencies: Vec<String>,
pub markers: Option<String>,
pub files: Vec<ResolvedFile>,
}Expand description
A resolved package with its locked version
Fields§
§name: StringPackage name (normalized)
version: StringResolved version
url: StringDownload URL (default/universal)
hash: StringHash (format: “algorithm:hash”)
dependencies: Vec<String>Direct dependencies (normalized names)
markers: Option<String>Platform markers (PEP 508)
files: Vec<ResolvedFile>Platform-specific files
Implementations§
Source§impl ResolvedPackage
impl ResolvedPackage
Sourcepub fn parse_hash(&self) -> Option<(&str, &str)>
pub fn parse_hash(&self) -> Option<(&str, &str)>
Parse the hash into algorithm and value
Trait Implementations§
Source§impl Clone for ResolvedPackage
impl Clone for ResolvedPackage
Source§fn clone(&self) -> ResolvedPackage
fn clone(&self) -> ResolvedPackage
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ResolvedPackage
impl RefUnwindSafe for ResolvedPackage
impl Send for ResolvedPackage
impl Sync for ResolvedPackage
impl Unpin for ResolvedPackage
impl UnwindSafe for ResolvedPackage
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