pub struct EKReminderPredicate {
pub calendar_identifiers: Option<Vec<String>>,
pub kind: EKReminderPredicateKind,
pub start_date: Option<String>,
pub end_date: Option<String>,
}Expand description
Represents the EventKit reminder-search predicate payload.
Fields§
§calendar_identifiers: Option<Vec<String>>Mirrors the EventKit calendarIdentifiers property.
kind: EKReminderPredicateKindMirrors the EventKit kind property.
start_date: Option<String>Mirrors the EventKit startDate property.
end_date: Option<String>Mirrors the EventKit endDate property.
Implementations§
Source§impl EKReminderPredicate
impl EKReminderPredicate
Sourcepub fn incomplete() -> Self
pub fn incomplete() -> Self
Creates an EventKit reminder predicate for incomplete reminders.
Sourcepub fn with_calendar_identifiers(
self,
calendar_identifiers: impl IntoIterator<Item = String>,
) -> Self
pub fn with_calendar_identifiers( self, calendar_identifiers: impl IntoIterator<Item = String>, ) -> Self
Sets the EventKit calendarIdentifiers property on this EKReminderPredicate value.
Sourcepub fn with_start_date(self, start_date: impl Into<String>) -> Self
pub fn with_start_date(self, start_date: impl Into<String>) -> Self
Sets the EventKit startDate property on this EKReminderPredicate value.
Sourcepub fn with_end_date(self, end_date: impl Into<String>) -> Self
pub fn with_end_date(self, end_date: impl Into<String>) -> Self
Sets the EventKit endDate property on this EKReminderPredicate value.
Trait Implementations§
Source§impl Clone for EKReminderPredicate
impl Clone for EKReminderPredicate
Source§impl Debug for EKReminderPredicate
impl Debug for EKReminderPredicate
Source§impl Default for EKReminderPredicate
impl Default for EKReminderPredicate
Source§impl<'de> Deserialize<'de> for EKReminderPredicate
impl<'de> Deserialize<'de> for EKReminderPredicate
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 Eq for EKReminderPredicate
Source§impl PartialEq for EKReminderPredicate
impl PartialEq for EKReminderPredicate
Source§impl Serialize for EKReminderPredicate
impl Serialize for EKReminderPredicate
impl StructuralPartialEq for EKReminderPredicate
Auto Trait Implementations§
impl Forget for EKReminderPredicate
impl Freeze for EKReminderPredicate
impl Move for EKReminderPredicate
impl RefUnwindSafe for EKReminderPredicate
impl Send for EKReminderPredicatewhere
RawVecInner: Send,
impl Sync for EKReminderPredicatewhere
RawVecInner: Sync,
impl Unpin for EKReminderPredicate
impl UnsafeUnpin for EKReminderPredicatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for EKReminderPredicatewhere
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