pub struct EKCalendarItem {
pub kind: EKCalendarItemKind,
pub event: Option<EKEvent>,
pub reminder: Option<EKReminder>,
}Expand description
Represents either an EventKit event or reminder result.
Fields§
§kind: EKCalendarItemKindMirrors the EventKit kind property.
event: Option<EKEvent>Mirrors the EventKit event property.
reminder: Option<EKReminder>Mirrors the EventKit reminder property.
Implementations§
Source§impl EKCalendarItem
impl EKCalendarItem
Sourcepub fn as_reminder(&self) -> Option<&EKReminder>
pub fn as_reminder(&self) -> Option<&EKReminder>
Returns the wrapped EventKit reminder when present.
Trait Implementations§
Source§impl Clone for EKCalendarItem
impl Clone for EKCalendarItem
Source§impl Debug for EKCalendarItem
impl Debug for EKCalendarItem
Source§impl<'de> Deserialize<'de> for EKCalendarItem
impl<'de> Deserialize<'de> for EKCalendarItem
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
Source§impl PartialEq for EKCalendarItem
impl PartialEq for EKCalendarItem
Source§impl Serialize for EKCalendarItem
impl Serialize for EKCalendarItem
impl StructuralPartialEq for EKCalendarItem
Auto Trait Implementations§
impl Forget for EKCalendarItem
impl Freeze for EKCalendarItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<EKEntityType>: Freeze,
PhantomData<EKCalendarEventAvailability>: Freeze,
PhantomData<EKAlarm>: Freeze,
PhantomData<EKRecurrenceRule>: Freeze,
PhantomData<EKParticipant>: Freeze,
impl Move for EKCalendarItem
impl RefUnwindSafe for EKCalendarItem
impl Send for EKCalendarItemwhere
RawVecInner: Send,
impl Sync for EKCalendarItemwhere
RawVecInner: Sync,
impl Unpin for EKCalendarItem
impl UnsafeUnpin for EKCalendarItem
impl UnwindSafe for EKCalendarItemwhere
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