pub struct DateTimeFilter {
    pub year: Option<u16>,
    pub month: Option<u8>,
    pub day: Option<u8>,
    pub day_of_week: Option<DayOfWeek>,
    pub hour: Option<u8>,
    pub minute: Option<u8>,
    pub second: Option<u8>,
}Expand description
A filter used for RealTimeClock::schedule_alarm.
Fields§
§year: Option<u16>The year that this alarm should trigger on, None if the RTC alarm should not trigger on a year value.
month: Option<u8>The month that this alarm should trigger on, None if the RTC alarm should not trigger on a month value.
day: Option<u8>The day that this alarm should trigger on, None if the RTC alarm should not trigger on a day value.
day_of_week: Option<DayOfWeek>The day of week that this alarm should trigger on, None if the RTC alarm should not trigger on a day of week value.
hour: Option<u8>The hour that this alarm should trigger on, None if the RTC alarm should not trigger on a hour value.
minute: Option<u8>The minute that this alarm should trigger on, None if the RTC alarm should not trigger on a minute value.
second: Option<u8>The second that this alarm should trigger on, None if the RTC alarm should not trigger on a second value.
Implementations§
Source§impl DateTimeFilter
 
impl DateTimeFilter
Sourcepub fn day_of_week(self, day_of_week: DayOfWeek) -> Self
 
pub fn day_of_week(self, day_of_week: DayOfWeek) -> Self
Set a filter on the given day of the week