pub struct ScheduleInterval {
pub year: Option<u8>,
pub month: Option<u8>,
pub day: Option<u8>,
pub weekday: Option<u8>,
pub hour: Option<u8>,
pub minute: Option<u8>,
pub second: Option<u8>,
}Expand description
The set of date fields a notification must match to be delivered.
Fields left as None match any value, so the notification fires on every date
whose remaining components match. Used by Schedule::Interval.
Fields§
§year: Option<u8>The year the notification fires on.
month: Option<u8>The month of the year the notification fires on.
day: Option<u8>The day of the month the notification fires on.
weekday: Option<u8>The day of the week the notification fires on.
1 - Sunday, 2 - Monday, 3 - Tuesday, 4 - Wednesday, 5 - Thursday, 6 - Friday, 7 - Saturday.
hour: Option<u8>The hour of the day the notification fires on, in the 24-hour clock.
minute: Option<u8>The minute of the hour the notification fires on.
second: Option<u8>The second of the minute the notification fires on.
Trait Implementations§
Source§impl Debug for ScheduleInterval
impl Debug for ScheduleInterval
Source§impl Default for ScheduleInterval
impl Default for ScheduleInterval
Source§impl<'de> Deserialize<'de> for ScheduleInterval
impl<'de> Deserialize<'de> for ScheduleInterval
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 ScheduleInterval
impl RefUnwindSafe for ScheduleInterval
impl Send for ScheduleInterval
impl Sync for ScheduleInterval
impl Unpin for ScheduleInterval
impl UnsafeUnpin for ScheduleInterval
impl UnwindSafe for ScheduleInterval
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