constructor from a rusqlite Row
(row: &rusqlite::Row)
| 43 | impl MonthCase { |
| 44 | /// constructor from a rusqlite Row |
| 45 | pub fn from_row(row: &rusqlite::Row) -> Self { |
| 46 | MonthCase { |
| 47 | month: row.get(0).unwrap(), |
| 48 | new_cases: row.get(1).unwrap(), |
| 49 | recovered: row.get(2).unwrap(), |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | impl std::fmt::Display for MonthCase { |
nothing calls this directly
no outgoing calls
no test coverage detected