pub struct UpdateStatusSnapshot {
pub current_version: String,
pub latest_version: Option<String>,
pub update_available: bool,
pub release_url: Option<String>,
pub channel: Option<String>,
pub check_due: bool,
}Expand description
Cached updater status for the desktop client. The service owns update policy (channel, pin, check interval); this snapshot never triggers network I/O, it only reports the last cached check.
Fields§
§current_version: StringVersion of the running service binary.
latest_version: Option<String>Latest known release version, when a check has reported one.
update_available: boolWhether latest_version is newer than current_version and not dismissed.
release_url: Option<String>HTTPS release page for latest_version, when known.
channel: Option<String>Release channel the service follows (stable/beta/nightly).
check_due: boolWhether the configured check interval has elapsed since the last check.
Trait Implementations§
Source§impl Clone for UpdateStatusSnapshot
impl Clone for UpdateStatusSnapshot
Source§impl Debug for UpdateStatusSnapshot
impl Debug for UpdateStatusSnapshot
Source§impl<'de> Deserialize<'de> for UpdateStatusSnapshot
impl<'de> Deserialize<'de> for UpdateStatusSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UpdateStatusSnapshot
Source§impl PartialEq for UpdateStatusSnapshot
impl PartialEq for UpdateStatusSnapshot
Source§impl Serialize for UpdateStatusSnapshot
impl Serialize for UpdateStatusSnapshot
impl StructuralPartialEq for UpdateStatusSnapshot
Auto Trait Implementations§
impl Forget for UpdateStatusSnapshot
impl Freeze for UpdateStatusSnapshot
impl RefUnwindSafe for UpdateStatusSnapshot
impl Send for UpdateStatusSnapshot
impl Sync for UpdateStatusSnapshot
impl Unpin for UpdateStatusSnapshot
impl UnsafeUnpin for UpdateStatusSnapshot
impl UnwindSafe for UpdateStatusSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.