#[non_exhaustive]pub enum Recurrence {
DailyRecurrence(Box<DailyRecurrence>),
WeeklyRecurrence(Box<WeeklyRecurrence>),
}Expand description
A oneof field to represent when backups will be taken.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DailyRecurrence(Box<DailyRecurrence>)
For a schedule that runs daily.
WeeklyRecurrence(Box<WeeklyRecurrence>)
For a schedule that runs weekly on a specific day.
Trait Implementations§
Source§impl Clone for Recurrence
impl Clone for Recurrence
Source§fn clone(&self) -> Recurrence
fn clone(&self) -> Recurrence
Returns a duplicate of the value. Read more
1.0.0 · 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 Recurrence
impl Debug for Recurrence
Source§impl PartialEq for Recurrence
impl PartialEq for Recurrence
impl StructuralPartialEq for Recurrence
Auto Trait Implementations§
impl Freeze for Recurrence
impl RefUnwindSafe for Recurrence
impl Send for Recurrence
impl Sync for Recurrence
impl Unpin for Recurrence
impl UnwindSafe for Recurrence
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