pub struct ResolvedPackage {
pub canonical_name: String,
pub resolved_name: String,
pub manager: String,
pub version: Option<String>,
pub script: Option<String>,
}Expand description
A package resolved to a concrete manager and name.
Fields§
§canonical_name: StringCanonical name from the module spec.
resolved_name: StringActual name for the manager (after alias resolution).
manager: StringWhich manager will install it. "script" means use a custom install script.
version: Option<String>Available version (if queried).
script: Option<String>Install script content (inline or file path). Only set when manager == "script".
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 moreSource§impl Debug for ResolvedPackage
impl Debug for ResolvedPackage
Auto Trait Implementations§
impl Freeze for ResolvedPackage
impl RefUnwindSafe for ResolvedPackage
impl Send for ResolvedPackage
impl Sync for ResolvedPackage
impl Unpin for ResolvedPackage
impl UnsafeUnpin 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