pub struct LockedPackage {
pub version: String,
pub url: Option<String>,
pub hash: Option<String>,
pub dependencies: Vec<String>,
pub markers: Option<String>,
pub files: Vec<PlatformFile>,
}Expand description
A locked package with its exact version and metadata
Fields§
§version: StringExact version
url: Option<String>Download URL (default/universal)
hash: Option<String>Hash for verification (format: “algorithm:hash”)
dependencies: Vec<String>Direct dependencies of this package (normalized names)
markers: Option<String>Platform markers (PEP 508 environment markers)
files: Vec<PlatformFile>Platform-specific files (for packages with binary wheels)
Trait Implementations§
Source§impl Clone for LockedPackage
impl Clone for LockedPackage
Source§fn clone(&self) -> LockedPackage
fn clone(&self) -> LockedPackage
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 moreSource§impl Debug for LockedPackage
impl Debug for LockedPackage
Source§impl<'de> Deserialize<'de> for LockedPackage
impl<'de> Deserialize<'de> for LockedPackage
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
Auto Trait Implementations§
impl Freeze for LockedPackage
impl RefUnwindSafe for LockedPackage
impl Send for LockedPackage
impl Sync for LockedPackage
impl Unpin for LockedPackage
impl UnwindSafe for LockedPackage
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