MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / from_row

Method from_row

20_sqlite/rust/sqlite/src/helpers.rs:45–51  ·  view source on GitHub ↗

constructor from a rusqlite Row

(row: &rusqlite::Row)

Source from the content-addressed store, hash-verified

43impl 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
54impl std::fmt::Display for MonthCase {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected