pub struct UpdateInfo {
pub current: String,
pub latest: String,
pub tag: String,
pub method: InstallMethod,
pub can_self_update: bool,
}Expand description
A newer release discovered by check.
Fields§
§current: StringVersion this binary reports (without a leading v).
latest: StringLatest released version (without a leading v).
tag: StringGit tag of the latest release (e.g. v1.0.2).
method: InstallMethodHow this binary was installed.
can_self_update: boolWhether the app can download and install this update itself.
Implementations§
Source§impl UpdateInfo
impl UpdateInfo
Sourcepub fn release_url(&self) -> String
pub fn release_url(&self) -> String
URL of the release page, shown when the app cannot self-update.
Trait Implementations§
Source§impl Clone for UpdateInfo
impl Clone for UpdateInfo
Source§fn clone(&self) -> UpdateInfo
fn clone(&self) -> UpdateInfo
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 moreAuto Trait Implementations§
impl Freeze for UpdateInfo
impl RefUnwindSafe for UpdateInfo
impl Send for UpdateInfo
impl Sync for UpdateInfo
impl Unpin for UpdateInfo
impl UnsafeUnpin for UpdateInfo
impl UnwindSafe for UpdateInfo
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