pub struct UpdatesConfig {
pub check: bool,
pub interval: Duration,
pub notify: bool,
}Expand description
Looking for new rigtop releases on GitHub.
Fields§
§check: boolLook for new releases (contacts github.com); false never does.
interval: DurationTime between checks (also checked at startup), written like “1h”, “30m”, “1d” or “1h30m”.
notify: boolAnnounce a new release with a desktop notification (GUI), besides the note in the title.
Implementations§
Source§impl UpdatesConfig
impl UpdatesConfig
Sourcepub fn check_interval(&self) -> Duration
pub fn check_interval(&self) -> Duration
Time between checks; at least a minute, whatever the file says.
Trait Implementations§
Source§impl Clone for UpdatesConfig
impl Clone for UpdatesConfig
Source§impl Debug for UpdatesConfig
impl Debug for UpdatesConfig
Source§impl Default for UpdatesConfig
impl Default for UpdatesConfig
Source§impl<'de> Deserialize<'de> for UpdatesConfigwhere
UpdatesConfig: Default,
impl<'de> Deserialize<'de> for UpdatesConfigwhere
UpdatesConfig: Default,
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
Source§impl PartialEq for UpdatesConfig
impl PartialEq for UpdatesConfig
Source§impl Serialize for UpdatesConfig
impl Serialize for UpdatesConfig
impl StructuralPartialEq for UpdatesConfig
Auto Trait Implementations§
impl Freeze for UpdatesConfig
impl RefUnwindSafe for UpdatesConfig
impl Send for UpdatesConfig
impl Sync for UpdatesConfig
impl Unpin for UpdatesConfig
impl UnsafeUnpin for UpdatesConfig
impl UnwindSafe for UpdatesConfig
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