Struct tdo_core::todo::Todo [] [src]

pub struct Todo {
    pub id: u32,
    pub name: String,
    pub done: bool,
    pub github: Option<GitHub>,
}

Data Structure for a simple todo.

A Todo item is the atomic unit within the tdo microcosm. It represents a single todo or task, which is identified by an ID. Information about its state (done or undone) can be derived from the data structure as well as the title of the todo item.

Fields

Unique identifier for every Todo.

Title of the todo.

Status of the todo.

Optional GitHub issue.

Methods

impl Todo
[src]

Constructor. Creates a new Todo item.

Edit the title of a given Todo.

Set the status of a Todo item to done.

Mark a todo item as undone.

Trait Implementations

impl Debug for Todo
[src]

Formats the value using the given formatter.

impl Clone for Todo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more