pub struct CalendarTodo<'a> { /* private fields */ }Expand description
Borrowed view of a Todo paired with its calendar’s timezone.
Obtained from Calendar::calendar_todos. The timezone is needed to anchor
DATE-only DTSTART values when expanding recurrences.
§Serialisation
Doesn’t implement Serialize/Deserialize - it’s a view, not owned data.
Serialise the inner todo via .todo().
Implementations§
Source§impl<'a> CalendarTodo<'a>
impl<'a> CalendarTodo<'a>
Sourcepub fn calendar_tz(&self) -> Option<&str>
pub fn calendar_tz(&self) -> Option<&str>
The calendar’s timezone, if one was set.
Sourcepub fn get_recurrence(&self) -> Result<RRuleSet, RecurrenceError>
pub fn get_recurrence(&self) -> Result<RRuleSet, RecurrenceError>
Like EventLike::get_recurrence but anchors DATE-only values to the calendar timezone.
Methods from Deref<Target = Todo>§
Sourcepub fn get_percent_complete(&self) -> Option<u8>
pub fn get_percent_complete(&self) -> Option<u8>
Gets the PERCENT-COMPLETE property.
Ranges between 0 - 100.
Sourcepub fn get_due(&self) -> Option<DatePerhapsTime>
pub fn get_due(&self) -> Option<DatePerhapsTime>
Gets the DUE property
Sourcepub fn get_completed(&self) -> Option<DateTime<Utc>>
pub fn get_completed(&self) -> Option<DateTime<Utc>>
Gets the COMPLETED property
Per RFC 5545, Section 3.8.2.1, this must be a date-time in UTC format.
Sourcepub fn get_status(&self) -> Option<TodoStatus>
pub fn get_status(&self) -> Option<TodoStatus>
Gets the overall status.
Trait Implementations§
Source§impl<'a> Clone for CalendarTodo<'a>
impl<'a> Clone for CalendarTodo<'a>
Source§fn clone(&self) -> CalendarTodo<'a>
fn clone(&self) -> CalendarTodo<'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 moreimpl<'a> Copy for CalendarTodo<'a>
Source§impl<'a> Debug for CalendarTodo<'a>
impl<'a> Debug for CalendarTodo<'a>
Auto Trait Implementations§
impl<'a> Freeze for CalendarTodo<'a>
impl<'a> RefUnwindSafe for CalendarTodo<'a>
impl<'a> Send for CalendarTodo<'a>
impl<'a> Sync for CalendarTodo<'a>
impl<'a> Unpin for CalendarTodo<'a>
impl<'a> UnsafeUnpin for CalendarTodo<'a>
impl<'a> UnwindSafe for CalendarTodo<'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