(row: &psql::user::Row)
| 5 | |
| 6 | impl From<&psql::user::Row> for User { |
| 7 | fn from(row: &psql::user::Row) -> Self { |
| 8 | User::Registered { |
| 9 | id: ID(row.id.to_string()), |
| 10 | name: row.name.to_owned(), |
| 11 | avatar_url: row.avatar_url.to_owned(), |
| 12 | selected_repo_id: row.selected_repository_id.map(|uuid| ID(uuid.to_string())), |
| 13 | } |
| 14 | } |
| 15 | } |