pub struct InstalledPkg {
pub name: String,
pub requested_by: String,
pub sha: String,
pub tag: Option<String>,
pub entry: PathBuf,
pub placement: Placement,
pub patched: bool,
}Expand description
One row of an InstallReport.
Fields§
§name: StringLocal alias (the [deps.<name>] key, or the name a package’s own
manifest used for a transitive dep).
requested_by: StringWho asked for it: MANIFEST_REQUESTER for a direct dep, else the
name of the package whose mlua-pkg.toml declared it.
sha: StringResolved commit SHA (40-char hex).
tag: Option<String>Concrete tag recorded in the lockfile (v1.0.5 for a v1.0 prefix
pin; whatever the manifest declared otherwise). None for
branch / rev / unpinned deps.
entry: PathBufEntry directory relative to the package root ("src", ".", …).
placement: PlacementSymlink or copy location on disk. Either way it is the package
root; see root / require_dir.
patched: booltrue when the package was resolved from its patch_dir (the
lockfile’s patch_base matched the pin), false for upstream.
Implementations§
Source§impl InstalledPkg
impl InstalledPkg
Trait Implementations§
Source§impl Clone for InstalledPkg
impl Clone for InstalledPkg
Source§fn clone(&self) -> InstalledPkg
fn clone(&self) -> InstalledPkg
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 moreSource§impl Debug for InstalledPkg
impl Debug for InstalledPkg
impl Eq for InstalledPkg
Source§impl PartialEq for InstalledPkg
impl PartialEq for InstalledPkg
impl StructuralPartialEq for InstalledPkg
Auto Trait Implementations§
impl Freeze for InstalledPkg
impl RefUnwindSafe for InstalledPkg
impl Send for InstalledPkg
impl Sync for InstalledPkg
impl Unpin for InstalledPkg
impl UnsafeUnpin for InstalledPkg
impl UnwindSafe for InstalledPkg
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§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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more