[][src]Struct ics::ToDo

pub struct ToDo<'a> { /* fields omitted */ }

The VTODO calendar component

A ToDo component is a grouping of component properties, possibly including an Alarm, that represent an action-item or assignment. (see RFC5545 3.6.2. To-Do Component)

Implementations

impl<'a> ToDo<'a>[src]

pub fn new<U, D>(uid: U, dtstamp: D) -> Self where
    U: Into<Cow<'a, str>>,
    D: Into<Cow<'a, str>>, 
[src]

Creates a new VTODO calendar component. The UID and DTSTAMP properties are required. A UID should be generated randomly for security reasons.

pub fn push<P>(&mut self, property: P) where
    P: Into<Property<'a>>, 
[src]

Adds a property to the to-do. RFC5545 and RFC7986 specify which properties can be added to a to-do.

pub fn add_alarm(&mut self, alarm: Alarm<'a>)[src]

Adds an VALARM to the to-do.

Trait Implementations

impl<'a> Clone for ToDo<'a>[src]

impl<'a> Debug for ToDo<'a>[src]

impl<'a> Display for ToDo<'a>[src]

impl<'a> Eq for ToDo<'a>[src]

impl<'a> From<ToDo<'a>> for Component<'a>[src]

impl<'a> Hash for ToDo<'a>[src]

impl<'a> Ord for ToDo<'a>[src]

impl<'a> PartialEq<ToDo<'a>> for ToDo<'a>[src]

impl<'a> PartialOrd<ToDo<'a>> for ToDo<'a>[src]

impl<'a> StructuralEq for ToDo<'a>[src]

impl<'a> StructuralPartialEq for ToDo<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ToDo<'a>

impl<'a> Send for ToDo<'a>

impl<'a> Sync for ToDo<'a>

impl<'a> Unpin for ToDo<'a>

impl<'a> UnwindSafe for ToDo<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.