RemindersManager

Struct RemindersManager 

Source
pub struct RemindersManager { /* private fields */ }
Expand description

The main reminders manager providing access to EventKit functionality

Implementations§

Source§

impl RemindersManager

Source

pub fn new() -> Self

Creates a new RemindersManager instance

Source

pub fn authorization_status() -> AuthorizationStatus

Gets the current authorization status for reminders

Source

pub fn request_access(&self) -> Result<bool>

Requests full access to reminders (blocking)

Returns Ok(true) if access was granted, Ok(false) if denied

Source

pub fn ensure_authorized(&self) -> Result<()>

Ensures we have authorization, requesting if needed

Source

pub fn list_calendars(&self) -> Result<Vec<CalendarInfo>>

Lists all reminder calendars (lists)

Source

pub fn default_calendar(&self) -> Result<CalendarInfo>

Gets the default calendar for new reminders

Source

pub fn fetch_all_reminders(&self) -> Result<Vec<ReminderItem>>

Fetches all reminders (blocking)

Source

pub fn fetch_reminders( &self, calendar_titles: Option<&[&str]>, ) -> Result<Vec<ReminderItem>>

Fetches reminders from specific calendars (blocking)

Source

pub fn fetch_incomplete_reminders(&self) -> Result<Vec<ReminderItem>>

Fetches incomplete reminders

Source

pub fn create_reminder( &self, title: &str, notes: Option<&str>, calendar_title: Option<&str>, priority: Option<usize>, ) -> Result<ReminderItem>

Creates a new reminder

Source

pub fn update_reminder( &self, identifier: &str, title: Option<&str>, notes: Option<&str>, completed: Option<bool>, priority: Option<usize>, ) -> Result<ReminderItem>

Updates an existing reminder

Source

pub fn complete_reminder(&self, identifier: &str) -> Result<ReminderItem>

Marks a reminder as complete

Source

pub fn uncomplete_reminder(&self, identifier: &str) -> Result<ReminderItem>

Marks a reminder as incomplete

Source

pub fn delete_reminder(&self, identifier: &str) -> Result<()>

Deletes a reminder

Source

pub fn get_reminder(&self, identifier: &str) -> Result<ReminderItem>

Gets a reminder by its identifier

Trait Implementations§

Source§

impl Default for RemindersManager

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,