pub trait Store {
// Required methods
fn next_id(&mut self) -> TodoId;
fn insert(&mut self, todo: Todo);
fn get(&self, id: TodoId) -> Option<Todo>;
fn list(&self) -> Vec<Todo>;
fn update(&mut self, todo: Todo);
fn remove(&mut self, id: TodoId);
}Expand description
Backing store for todo items. Implementations may be in-memory or persistent.