pub enum RecurrencePattern {
Daily {
interval: u32,
},
Weekly {
interval: u32,
days: Vec<u32>,
},
Monthly {
interval: u32,
day_of_month: u32,
},
Cron {
expression: String,
},
}Expand description
Recurrence pattern.
Variants§
Daily
Every N days.
Weekly
Every N weeks on specific days.
Monthly
Every N months on specific day.
Cron
Custom cron expression.
Trait Implementations§
Source§impl Clone for RecurrencePattern
impl Clone for RecurrencePattern
Source§fn clone(&self) -> RecurrencePattern
fn clone(&self) -> RecurrencePattern
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 RecurrencePattern
impl Debug for RecurrencePattern
Source§impl<'de> Deserialize<'de> for RecurrencePattern
impl<'de> Deserialize<'de> for RecurrencePattern
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
Auto Trait Implementations§
impl Freeze for RecurrencePattern
impl RefUnwindSafe for RecurrencePattern
impl Send for RecurrencePattern
impl Sync for RecurrencePattern
impl Unpin for RecurrencePattern
impl UnsafeUnpin for RecurrencePattern
impl UnwindSafe for RecurrencePattern
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