pub trait Todo {
// Required methods
fn uid(&self) -> &str;
fn completed(&self) -> Option<DateTime<FixedOffset>>;
fn description(&self) -> Option<&str>;
fn due(&self) -> Option<DatePerhapsTime>;
fn percent(&self) -> Option<u8>;
fn priority(&self) -> Priority;
fn status(&self) -> Option<TodoStatus>;
fn summary(&self) -> &str;
}Expand description
Trait representing a todo item.
Required Methods§
Sourcefn completed(&self) -> Option<DateTime<FixedOffset>>
fn completed(&self) -> Option<DateTime<FixedOffset>>
Returns the description of the todo item.
Sourcefn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
Returns the description of the todo item, if available.
Sourcefn due(&self) -> Option<DatePerhapsTime>
fn due(&self) -> Option<DatePerhapsTime>
Returns the due date and time of the todo item, if available.
Sourcefn status(&self) -> Option<TodoStatus>
fn status(&self) -> Option<TodoStatus>
Returns the status of the todo item, if available.