pub struct ReminderPatch<'a> {
pub title: Option<&'a str>,
pub notes: Option<&'a str>,
pub completed: Option<bool>,
pub priority: Option<usize>,
pub due_date: Option<Option<DateTime<Local>>>,
pub start_date: Option<Option<DateTime<Local>>>,
pub calendar_title: Option<&'a str>,
pub URL: Option<Option<&'a str>>,
pub location: Option<Option<&'a str>>,
pub structured_location: Option<Option<&'a StructuredLocation>>,
pub due_date_timezone: Option<Option<&'a str>>,
pub completion_date: Option<Option<DateTime<Local>>>,
}Expand description
Input for RemindersManager::update_reminder. Each field uses one of:
None (don’t touch), Some(value) (set), and for Option<Option<T>>
fields, Some(None) (clear). Build with ..Default::default().
Fields§
§title: Option<&'a str>§notes: Option<&'a str>§completed: Option<bool>§priority: Option<usize>§due_date: Option<Option<DateTime<Local>>>§start_date: Option<Option<DateTime<Local>>>§calendar_title: Option<&'a str>§URL: Option<Option<&'a str>>§location: Option<Option<&'a str>>§structured_location: Option<Option<&'a StructuredLocation>>Rich location (the iCloud-persisted chip). Some(Some(loc)) sets,
Some(None) clears, None leaves untouched.
due_date_timezone: Option<Option<&'a str>>Same Option<Option<...>> semantics: Some(Some("America/LA")) sets,
Some(None) clears, None leaves untouched.
completion_date: Option<Option<DateTime<Local>>>Explicit completion date. Apple’s setCompletionDate: is the
authoritative completion toggle — a non-nil value implies
isCompleted = YES and a nil value implies NO. We apply this
after completed in update_reminder, so when both are
provided the date wins.
Trait Implementations§
Source§impl<'a> Clone for ReminderPatch<'a>
impl<'a> Clone for ReminderPatch<'a>
Source§fn clone(&self) -> ReminderPatch<'a>
fn clone(&self) -> ReminderPatch<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ReminderPatch<'a>
impl<'a> Debug for ReminderPatch<'a>
Source§impl<'a> Default for ReminderPatch<'a>
impl<'a> Default for ReminderPatch<'a>
Source§fn default() -> ReminderPatch<'a>
fn default() -> ReminderPatch<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ReminderPatch<'a>
impl<'a> RefUnwindSafe for ReminderPatch<'a>
impl<'a> Send for ReminderPatch<'a>
impl<'a> Sync for ReminderPatch<'a>
impl<'a> Unpin for ReminderPatch<'a>
impl<'a> UnsafeUnpin for ReminderPatch<'a>
impl<'a> UnwindSafe for ReminderPatch<'a>
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