|
|
@ -78,9 +78,6 @@ impl<'a> TryFrom<&Row<'a>> for Room {
|
|
|
|
type Error = Box<dyn Error>;
|
|
|
|
type Error = Box<dyn Error>;
|
|
|
|
|
|
|
|
|
|
|
|
fn try_from(row: &Row) -> Result<Self, Self::Error> {
|
|
|
|
fn try_from(row: &Row) -> Result<Self, Self::Error> {
|
|
|
|
//let orig_id: String = try_log!(row.get("id"), "id");
|
|
|
|
|
|
|
|
//let new_id: Uuid = try_log!(Uuid::parse_str(&orig_id), "parse");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ok(Self {
|
|
|
|
Ok(Self {
|
|
|
|
id: try_log!(row.get("id"), "id"),
|
|
|
|
id: try_log!(row.get("id"), "id"),
|
|
|
|
zone: try_log!(row.get("zone"), "zone"),
|
|
|
|
zone: try_log!(row.get("zone"), "zone"),
|
|
|
|