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 for UpdateCheckSchedule
impl PartialEq for UpdateCheckSchedule
impl Copy for UpdateCheckSchedule
impl Eq for UpdateCheckSchedule
impl StructuralPartialEq for UpdateCheckSchedule
Auto Trait Implementations§
impl Freeze for UpdateCheckSchedule
impl RefUnwindSafe for UpdateCheckSchedule
impl Send for UpdateCheckSchedule
impl Sync for UpdateCheckSchedule
impl Unpin for UpdateCheckSchedule
impl UnwindSafe for UpdateCheckSchedule
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)