pub struct ReminderDraft<'a> {
pub title: &'a str,
pub notes: Option<&'a str>,
pub calendar_title: Option<&'a str>,
pub priority: Option<usize>,
pub due_date: Option<DateTime<Local>>,
pub start_date: Option<DateTime<Local>>,
pub URL: Option<&'a str>,
pub location: Option<&'a str>,
pub structured_location: Option<&'a StructuredLocation>,
pub due_date_timezone: Option<&'a str>,
}Expand description
Input for RemindersManager::create_reminder. All fields except title
are optional. Use ..Default::default() for the unset ones.
Fields§
§title: &'a str§notes: Option<&'a str>§calendar_title: Option<&'a str>§priority: Option<usize>§due_date: Option<DateTime<Local>>§start_date: Option<DateTime<Local>>§URL: Option<&'a str>§location: Option<&'a str>§structured_location: Option<&'a StructuredLocation>Rich location for Reminders.app’s location chip — writes
EKReminder.structuredLocation. This is the field iCloud Reminders
actually persists; the plain-string location above is a legacy
CalDAV field that iCloud silently drops.
due_date_timezone: Option<&'a str>IANA zone identifier for the due date, e.g. "America/Los_Angeles".
Trait Implementations§
Source§impl<'a> Clone for ReminderDraft<'a>
impl<'a> Clone for ReminderDraft<'a>
Source§fn clone(&self) -> ReminderDraft<'a>
fn clone(&self) -> ReminderDraft<'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 ReminderDraft<'a>
impl<'a> Debug for ReminderDraft<'a>
Source§impl<'a> Default for ReminderDraft<'a>
impl<'a> Default for ReminderDraft<'a>
Source§fn default() -> ReminderDraft<'a>
fn default() -> ReminderDraft<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ReminderDraft<'a>
impl<'a> RefUnwindSafe for ReminderDraft<'a>
impl<'a> Send for ReminderDraft<'a>
impl<'a> Sync for ReminderDraft<'a>
impl<'a> Unpin for ReminderDraft<'a>
impl<'a> UnsafeUnpin for ReminderDraft<'a>
impl<'a> UnwindSafe for ReminderDraft<'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