pub struct VersionCheckResult {
pub current: &'static str,
pub latest: Option<String>,
pub newer_available: Option<bool>,
pub html_url: Option<String>,
pub error: Option<String>,
}Expand description
Output shape for --check in JSON mode.
On failure latest, newer_available, and html_url are null;
error carries a human-readable reason. These null fields are stable
wire format — they are present, not absent, in the error path.
Fields§
§current: &'static strCurrent compiled-in version.
latest: Option<String>Latest stable tag without the v prefix (e.g. "0.4.0").
null when the check could not complete.
newer_available: Option<bool>true when latest is set and strictly newer than current.
null when latest is null.
html_url: Option<String>GitHub release page URL. null when the check could not complete.
error: Option<String>Human-readable error reason when the check failed.
Trait Implementations§
Source§impl Debug for VersionCheckResult
impl Debug for VersionCheckResult
Auto Trait Implementations§
impl Freeze for VersionCheckResult
impl RefUnwindSafe for VersionCheckResult
impl Send for VersionCheckResult
impl Sync for VersionCheckResult
impl Unpin for VersionCheckResult
impl UnsafeUnpin for VersionCheckResult
impl UnwindSafe for VersionCheckResult
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