(status: &SessionStatus)
| 362 | } |
| 363 | |
| 364 | fn status_to_string(status: &SessionStatus) -> &'static str { |
| 365 | match status { |
| 366 | SessionStatus::Active => "active", |
| 367 | SessionStatus::Completed => "completed", |
| 368 | SessionStatus::Archived => "archived", |
| 369 | SessionStatus::Compacting => "compacting", |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | fn string_to_status(s: &str) -> SessionStatus { |
| 374 | match s { |