pub struct InstallInfo {
pub version: &'static str,
pub channel: &'static str,
pub binary: Option<Utf8PathBuf>,
pub method: &'static str,
pub manifest: Option<InstallManifest>,
pub manifest_matches: Option<bool>,
pub update: &'static str,
pub check: &'static str,
}Expand description
The build and install report.
Fields§
§version: &'static strCARGO_PKG_VERSION of the running binary.
channel: &'static strstable, or beta for a pre-release version.
binary: Option<Utf8PathBuf>The running binary, when the OS reports it.
method: &'static strHow it was installed: install.sh, install.ps1, npm, cargo,
homebrew, nix, mcpb, or unknown.
manifest: Option<InstallManifest>The installer’s manifest, when one sits beside the binary.
manifest_matches: Option<bool>false when a manifest names a different version than the running
binary: the file was replaced other than by the installer.
update: &'static strHow to update an install of this kind. doiget never updates itself.
check: &'static strHow to compare with the latest release: an explicit request, never made on the user’s behalf (ADR-0015).
Trait Implementations§
Source§impl Clone for InstallInfo
impl Clone for InstallInfo
Source§fn clone(&self) -> InstallInfo
fn clone(&self) -> InstallInfo
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 InstallInfo
impl Debug for InstallInfo
Auto Trait Implementations§
impl Freeze for InstallInfo
impl RefUnwindSafe for InstallInfo
impl Send for InstallInfo
impl Sync for InstallInfo
impl Unpin for InstallInfo
impl UnsafeUnpin for InstallInfo
impl UnwindSafe for InstallInfo
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