pub struct EKAlarm {
pub absolute_date: Option<String>,
pub relative_offset: Option<f64>,
pub structured_location: Option<EKStructuredLocation>,
pub proximity: Option<EKAlarmProximity>,
pub alarm_type: Option<EKAlarmType>,
pub email_address: Option<String>,
pub sound_name: Option<String>,
pub url: Option<String>,
}Expand description
Represents EventKit EKAlarm data.
Fields§
§absolute_date: Option<String>Mirrors the EventKit absoluteDate property.
relative_offset: Option<f64>Mirrors the EventKit relativeOffset property.
structured_location: Option<EKStructuredLocation>Mirrors the EventKit structuredLocation property.
proximity: Option<EKAlarmProximity>Mirrors the EventKit proximity property.
alarm_type: Option<EKAlarmType>Mirrors the EventKit alarmType property.
email_address: Option<String>Mirrors the EventKit emailAddress property.
sound_name: Option<String>Mirrors the EventKit soundName property.
url: Option<String>Mirrors the EventKit url property.
Implementations§
Source§impl EKAlarm
impl EKAlarm
Sourcepub fn relative(relative_offset: f64) -> Self
pub fn relative(relative_offset: f64) -> Self
Creates an EventKit alarm with a relative offset.
Sourcepub fn absolute(absolute_date: impl Into<String>) -> Self
pub fn absolute(absolute_date: impl Into<String>) -> Self
Creates an EventKit alarm with an absolute date.
Sourcepub fn with_structured_location(
self,
structured_location: EKStructuredLocation,
) -> Self
pub fn with_structured_location( self, structured_location: EKStructuredLocation, ) -> Self
Sets the EventKit structuredLocation property on this EKAlarm value.
Sourcepub fn roundtrip(&self) -> Result<Self, EventKitError>
pub fn roundtrip(&self) -> Result<Self, EventKitError>
Round-trips this EventKit EKAlarm through the native bridge.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EKAlarm
impl<'de> Deserialize<'de> for EKAlarm
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
impl StructuralPartialEq for EKAlarm
Auto Trait Implementations§
impl Forget for EKAlarm
impl Freeze for EKAlarm
impl Move for EKAlarm
impl RefUnwindSafe for EKAlarm
impl Send for EKAlarmwhere
RawVecInner: Send,
impl Sync for EKAlarmwhere
RawVecInner: Sync,
impl Unpin for EKAlarm
impl UnsafeUnpin for EKAlarm
impl UnwindSafe for EKAlarmwhere
RawVecInner: UnwindSafe,
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