in focus/operations/src/maintenance/scheduling.rs [258:286]
fn from(t: &CalendarInterval) -> PlistValue {
let CalendarInterval {
day,
hour,
minute,
weekday,
every_n_minutes: _,
} = t;
let mut dict = PlistDictionary::new();
if let Some(day) = day {
dict.insert("Day".into(), day.into());
}
if let Some(hour) = hour {
dict.insert("Hour".into(), hour.into());
}
if let Some(minute) = minute {
dict.insert("Minute".into(), minute.into());
}
if let Some(weekday) = weekday {
dict.insert("Weekday".into(), weekday.into());
}
dict.into()
}