pub struct AlarmInfo {
pub relative_offset: Option<f64>,
pub absolute_date: Option<DateTime<Local>>,
pub proximity: AlarmProximity,
pub location: Option<StructuredLocation>,
pub email_address: Option<String>,
pub sound_name: Option<String>,
pub url: Option<String>,
pub alarm_type: AlarmType,
}Expand description
An alarm attached to a reminder or event.
Fields§
§relative_offset: Option<f64>Offset in seconds before the due date (negative = before).
absolute_date: Option<DateTime<Local>>Absolute date for the alarm (ISO 8601 string).
proximity: AlarmProximityProximity trigger (enter/leave geofence).
location: Option<StructuredLocation>Location for geofenced alarms.
email_address: Option<String>Email address for email-type alarms (CalDAV server-side notification).
sound_name: Option<String>Custom alarm sound name (audio-type alarms).
url: Option<String>URL opened when the alarm fires (procedure-type alarm). Distinct
from EKCalendarItem.URL — that’s lowercase url on EKAlarm.
Apple deprecated this property in macOS 10.9 but the API still
functions; we surface it for parity with the framework.
alarm_type: AlarmTypeDerived alarm type — Display/Audio/Procedure/Email. Apple infers this from which of the optional fields above are set. Read-only on output; ignored on input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlarmInfo
impl RefUnwindSafe for AlarmInfo
impl Send for AlarmInfo
impl Sync for AlarmInfo
impl Unpin for AlarmInfo
impl UnsafeUnpin for AlarmInfo
impl UnwindSafe for AlarmInfo
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