pub struct ResolvedVersion {
pub url: FileUrl,
pub size: Option<u64>,
pub checksum: Option<Checksum>,
pub deps: Vec<Dependency>,
}Expand description
The fully resolved metadata for a specific package version.
Produced by Registry::resolve and contains all information needed to
download or verify a package: the download URL, optional size and checksum,
and the dependency list.
Fields§
§url: FileUrlURL (or local file path) where the package archive can be obtained.
size: Option<u64>Uncompressed size of the package archive in bytes, if known.
checksum: Option<Checksum>Cryptographic checksum of the package archive, if the registry provides one.
deps: Vec<Dependency>Direct dependencies declared by this package version.
Trait Implementations§
Source§impl Clone for ResolvedVersion
impl Clone for ResolvedVersion
Source§fn clone(&self) -> ResolvedVersion
fn clone(&self) -> ResolvedVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedVersion
impl RefUnwindSafe for ResolvedVersion
impl Send for ResolvedVersion
impl Sync for ResolvedVersion
impl Unpin for ResolvedVersion
impl UnsafeUnpin for ResolvedVersion
impl UnwindSafe for ResolvedVersion
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