pub struct ScheduleMode {
pub keep: u32,
pub at: String,
}Expand description
A scheduled backup cadence (daily or weekly): keep at most keep snapshots
of this mode – the oldest is dropped once a newer one pushes past the cap –
taken at at (24h HH:MM).
Fields§
§keep: u32Max snapshots of this cadence to retain.
at: StringTime of day to run, 24h HH:MM.
Trait Implementations§
Source§impl Clone for ScheduleMode
impl Clone for ScheduleMode
Source§fn clone(&self) -> ScheduleMode
fn clone(&self) -> ScheduleMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScheduleMode
impl Debug for ScheduleMode
Source§impl Default for ScheduleMode
impl Default for ScheduleMode
Source§impl<'de> Deserialize<'de> for ScheduleMode
impl<'de> Deserialize<'de> for ScheduleMode
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 ScheduleMode
Source§impl PartialEq for ScheduleMode
impl PartialEq for ScheduleMode
Source§fn eq(&self, other: &ScheduleMode) -> bool
fn eq(&self, other: &ScheduleMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScheduleMode
impl Serialize for ScheduleMode
impl StructuralPartialEq for ScheduleMode
Auto Trait Implementations§
impl Freeze for ScheduleMode
impl RefUnwindSafe for ScheduleMode
impl Send for ScheduleMode
impl Sync for ScheduleMode
impl Unpin for ScheduleMode
impl UnsafeUnpin for ScheduleMode
impl UnwindSafe for ScheduleMode
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
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§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
Compare self to
key and return true if they are equal.