pub struct Installed {
pub link: PathBuf,
pub fallback: bool,
pub unchanged: bool,
pub repaired: bool,
pub replaced: Option<String>,
pub elevated: bool,
pub path_hint: Option<String>,
}Expand description
What CliTool::install did.
Fields§
§link: PathBuf§fallback: boolInstalled in the fallback folder (the admin prompt was declined or unavailable).
unchanged: boolAlready installed; nothing changed.
repaired: boolA stale link was repaired.
replaced: Option<String>What was replaced because the caller passed replace (a file, or a link’s target).
elevated: boolThe administrator prompt was used.
path_hint: Option<String>For a fallback install: the line to add to the shell profile.
Implementations§
Trait Implementations§
impl Eq for Installed
impl StructuralPartialEq for Installed
Auto Trait Implementations§
impl Freeze for Installed
impl RefUnwindSafe for Installed
impl Send for Installed
impl Sync for Installed
impl Unpin for Installed
impl UnsafeUnpin for Installed
impl UnwindSafe for Installed
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