pub struct UpdateStatusSnapshot {
pub current_version: String,
pub latest_version: Option<String>,
pub update_available: bool,
pub release_url: Option<String>,
pub release_highlights: Vec<String>,
pub current_release_highlights: Vec<String>,
pub current_release_url: Option<String>,
pub current_release_seen: bool,
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.
release_highlights: Vec<String>Parsed ### Highlights bullets for latest_version, taken from the
cached release notes. Empty when the cache has no notes (or no
Highlights section); clients render a link-only state then.
current_release_highlights: Vec<String>Parsed ### Highlights bullets for the running current_version,
for the post-update “what’s new” moment. Empty unless the cache holds
notes describing exactly the running version.
current_release_url: Option<String>HTTPS release page for the running version, sent alongside
current_release_highlights so the “what’s new” viewer can link out.
current_release_seen: boolWhether the running version’s notes were already announced by any VT Code surface. The marker lives in the shared update cache, so notes shown by the CLI are not repeated by the desktop app and vice versa.
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>,
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
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
key and return true if they are equal.