(&self)
| 213 | |
| 214 | impl TodoStatus { |
| 215 | pub fn as_str(&self) -> &'static str { |
| 216 | match self { |
| 217 | TodoStatus::Pending => "pending", |
| 218 | TodoStatus::InProgress => "in_progress", |
| 219 | TodoStatus::Completed => "completed", |
| 220 | TodoStatus::Cancelled => "cancelled", |
| 221 | } |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | impl std::fmt::Display for TodoStatus { |
no outgoing calls