Struct omaha_client::common::UpdateCheckSchedule
source · pub struct UpdateCheckSchedule {
pub last_update_time: Option<PartialComplexTime>,
pub last_update_check_time: Option<PartialComplexTime>,
pub next_update_time: Option<CheckTiming>,
}
Expand description
This describes the data around the scheduling of update checks
Fields§
§last_update_time: Option<PartialComplexTime>
When the last update check was attempted (start time of the check process).
last_update_check_time: Option<PartialComplexTime>
When the last update check was attempted.
next_update_time: Option<CheckTiming>
When the next update should happen.
Implementations§
source§impl UpdateCheckSchedule
impl UpdateCheckSchedule
sourcepub fn builder() -> UpdateCheckScheduleBuilder<((), (), ())>
pub fn builder() -> UpdateCheckScheduleBuilder<((), (), ())>
Create a builder for building UpdateCheckSchedule
.
On the builder, call .last_update_time(...)
(optional), .last_update_check_time(...)
(optional), .next_update_time(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of UpdateCheckSchedule
.
Trait Implementations§
source§impl Clone for UpdateCheckSchedule
impl Clone for UpdateCheckSchedule
source§fn clone(&self) -> UpdateCheckSchedule
fn clone(&self) -> UpdateCheckSchedule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateCheckSchedule
impl Debug for UpdateCheckSchedule
The default Debug implementation for SystemTime will only print seconds since unix epoch, which is not terribly useful in logs, so this prints a more human-relatable format.
e.g.
UpdateCheckSchedule { last_update_time: None, next_uptime_time: None }
UpdateCheckSchedule { last_update_time: "2001-07-08 16:34:56.026 UTC (994518299.026420000)", next_uptime_time: None }
source§impl Default for UpdateCheckSchedule
impl Default for UpdateCheckSchedule
source§fn default() -> UpdateCheckSchedule
fn default() -> UpdateCheckSchedule
source§impl PartialEq<UpdateCheckSchedule> for UpdateCheckSchedule
impl PartialEq<UpdateCheckSchedule> for UpdateCheckSchedule
source§fn eq(&self, other: &UpdateCheckSchedule) -> bool
fn eq(&self, other: &UpdateCheckSchedule) -> bool
self
and other
values to be equal, and is used
by ==
.