pub struct VersionStatus {
pub current_version: String,
pub latest_version: Option<String>,
pub update_available: bool,
pub install_method: String,
pub update_command: String,
}Expand description
Resolved version information for the current installation.
Fields§
§current_version: StringCurrent CLI version.
latest_version: Option<String>Latest version from cache or GitHub, when available.
update_available: boolWhether an update is available.
install_method: StringHuman-readable installation method.
update_command: StringRecommended update command for this installation.
Trait Implementations§
Source§impl Clone for VersionStatus
impl Clone for VersionStatus
Source§fn clone(&self) -> VersionStatus
fn clone(&self) -> VersionStatus
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 VersionStatus
impl Debug for VersionStatus
Auto Trait Implementations§
impl Freeze for VersionStatus
impl RefUnwindSafe for VersionStatus
impl Send for VersionStatus
impl Sync for VersionStatus
impl Unpin for VersionStatus
impl UnsafeUnpin for VersionStatus
impl UnwindSafe for VersionStatus
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