Todo

Trait Todo 

Source
pub trait Todo {
    // Required methods
    fn uid(&self) -> &str;
    fn completed(&self) -> Option<DateTime<Local>>;
    fn description(&self) -> Option<&str>;
    fn due(&self) -> Option<LooseDateTime>;
    fn percent_complete(&self) -> Option<u8>;
    fn priority(&self) -> Priority;
    fn status(&self) -> TodoStatus;
    fn summary(&self) -> &str;

    // Provided method
    fn short_id(&self) -> Option<NonZeroU32> { ... }
}
Expand description

Trait representing a todo item.

Required Methods§

Source

fn uid(&self) -> &str

Returns the unique identifier for the todo item.

Source

fn completed(&self) -> Option<DateTime<Local>>

Returns the description of the todo item.

Source

fn description(&self) -> Option<&str>

Returns the description of the todo item, if available.

Source

fn due(&self) -> Option<LooseDateTime>

Returns the due date and time of the todo item, if available.

Source

fn percent_complete(&self) -> Option<u8>

The percent complete, from 0 to 100.

Source

fn priority(&self) -> Priority

The priority from 1 to 9, where 1 is the highest priority.

Source

fn status(&self) -> TodoStatus

Returns the status of the todo item.

Source

fn summary(&self) -> &str

Returns the summary of the todo item.

Provided Methods§

Source

fn short_id(&self) -> Option<NonZeroU32>

The short identifier for the todo. It will be None if the event does not have a short ID. It is used for display purposes and may not be unique.

Implementations on Foreign Types§

Source§

impl Todo for Todo

Implementors§