pub struct InstalledPackage {
pub name: String,
pub version: Version,
pub install_dir: PathBuf,
pub checksum: String,
pub source: String,
}Expand description
Information about a newly installed package.
Fields§
§name: StringPackage name as listed in the manifest.
version: VersionExact resolved version (semver).
install_dir: PathBufWhere the package was extracted (absolute path).
checksum: StringSHA-256 hex of the tarball, written to the lockfile.
source: StringSource URL the package was fetched from (registry base), or "cache"
when the install was served entirely from the local cache.
Trait Implementations§
Source§impl Clone for InstalledPackage
impl Clone for InstalledPackage
Source§fn clone(&self) -> InstalledPackage
fn clone(&self) -> InstalledPackage
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 InstalledPackage
impl RefUnwindSafe for InstalledPackage
impl Send for InstalledPackage
impl Sync for InstalledPackage
impl Unpin for InstalledPackage
impl UnsafeUnpin for InstalledPackage
impl UnwindSafe for InstalledPackage
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