pub struct UpdateStatus {
pub enabled: bool,
pub latest: Option<ReleaseInfo>,
pub update_available: bool,
pub last_error: Option<String>,
}Expand description
The answer to SERVER_UPDATE: whether a newer release of the running server exists.
The server only looks; it never downloads or installs anything. Installing the release and restarting the server are the user’s.
Fields§
§enabled: boolWhether the server looks for releases at all: the application named where its
releases are published, and server.toml did not turn the check off.
latest: Option<ReleaseInfo>The newest release the last successful check found, whether or not it is newer
than the running server. None until a check has succeeded.
update_available: boolWhether latest is newer than the running server.
last_error: Option<String>Why the last check failed, when it did. A later success clears it; the last
latest is kept meanwhile.
Trait Implementations§
Source§impl Clone for UpdateStatus
impl Clone for UpdateStatus
Source§impl Debug for UpdateStatus
impl Debug for UpdateStatus
Source§impl Default for UpdateStatus
impl Default for UpdateStatus
Source§impl<'de> Deserialize<'de> for UpdateStatus
impl<'de> Deserialize<'de> for UpdateStatus
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 UpdateStatus
Source§impl PartialEq for UpdateStatus
impl PartialEq for UpdateStatus
Source§impl Serialize for UpdateStatus
impl Serialize for UpdateStatus
impl StructuralPartialEq for UpdateStatus
Auto Trait Implementations§
impl Forget for UpdateStatus
impl Freeze for UpdateStatus
impl Move for UpdateStatus
impl RefUnwindSafe for UpdateStatus
impl Send for UpdateStatus
impl Sync for UpdateStatus
impl Unpin for UpdateStatus
impl UnsafeUnpin for UpdateStatus
impl UnwindSafe for UpdateStatus
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