[][src]Struct icalendar::Todo

pub struct Todo { /* fields omitted */ }

Methods

impl Todo[src]

pub fn new() -> Self[src]

Creates a new Todo.

pub fn done(&mut self) -> Self[src]

End of builder pattern. copies over everything

pub fn percent_complete(&mut self, percent: u8) -> &mut Self[src]

Set the PERCENT-COMPLETE Property

Ranges between 0 - 100

pub fn due<T: Into<CalendarDateTime>>(&mut self, dt: T) -> &mut Self[src]

Set the DUE Property

See CalendarDateTime for info how are different chrono types converted automatically.

pub fn completed(&mut self, dt: DateTime<Utc>) -> &mut Self[src]

Set the COMPLETED Property

Per RFC 5545, Section 3.8.2.1, this must be a date-time in UTC format.

pub fn status(&mut self, status: TodoStatus) -> &mut Self[src]

Defines the overall status or confirmation

Trait Implementations

impl Component for Todo[src]

fn component_kind() -> &'static str[src]

Tells you what kind of Component this is

Might be VEVENT, VTODO, VALARM etc

fn properties(&self) -> &BTreeMap<String, Property>[src]

Read-only access to properties

fn multi_properties(&self) -> &Vec<Property>[src]

Read-only access to multi_properties

fn append_property(&mut self, property: Property) -> &mut Self[src]

Adds a Property

fn append_multi_property(&mut self, property: Property) -> &mut Self[src]

Adds a Property of which there may be many

impl Default for Todo[src]

impl Debug for Todo[src]

Auto Trait Implementations

impl Send for Todo

impl Sync for Todo

impl Unpin for Todo

impl UnwindSafe for Todo

impl RefUnwindSafe for Todo

Blanket Implementations

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

impl<T> From<T> for T[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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,