(raw: __ws::v2::TransactionUpdate)
| 60 | impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { |
| 61 | type Error = __sdk::Error; |
| 62 | fn try_from(raw: __ws::v2::TransactionUpdate) -> Result<Self, Self::Error> { |
| 63 | let mut db_update = DbUpdate::default(); |
| 64 | for table_update in __sdk::transaction_update_iter_table_updates(raw) { |
| 65 | match &table_update.table_name[..] { |
| 66 | "person" => db_update.person.append(person_table::parse_table_update(table_update)?), |
| 67 | |
| 68 | unknown => { |
| 69 | return Err(__sdk::InternalError::unknown_name("table", unknown, "DatabaseUpdate").into()); |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | Ok(db_update) |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | impl __sdk::InModule for DbUpdate { |
nothing calls this directly
no test coverage detected