(row: &SynonymRow)
| 71 | |
| 72 | impl From<&SynonymRow> for Synonym { |
| 73 | fn from(row: &SynonymRow) -> Self { |
| 74 | use std::str::FromStr; |
| 75 | Self { |
| 76 | added: row.added, |
| 77 | locale: Locale::from_str(&row.locale).unwrap_or(Locale::EN), |
| 78 | name: row.name.clone(), |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | #[derive(FromRow)] |
nothing calls this directly
no test coverage detected