(&self)
| 463 | } |
| 464 | |
| 465 | pub fn get_id(&self) -> Option<String> { |
| 466 | match self { |
| 467 | TodoList::Add { current_id, .. } |
| 468 | | TodoList::Complete { current_id, .. } |
| 469 | | TodoList::Remove { current_id, .. } => Some(current_id.clone()), |
| 470 | TodoList::Load { load_id } => Some(load_id.clone()), |
| 471 | TodoList::Create { .. } | TodoList::Lookup => None, |
| 472 | } |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | /// Generated by Q |
no test coverage detected