pub struct Todo {
pub id: u32,
pub name: String,
pub done: bool,
pub github: Option<GitHub>,
}Expand description
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§
§id: u32Unique identifier for every Todo.
name: StringTitle of the todo.
done: boolStatus of the todo.
github: Option<GitHub>Optional GitHub issue.
Implementations§
Trait Implementations§
Source§impl Deserialize for Todo
impl Deserialize for Todo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Todo
impl RefUnwindSafe for Todo
impl Send for Todo
impl Sync for Todo
impl Unpin for Todo
impl UnwindSafe for Todo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more