MCPcopy Create free account
hub / github.com/emwalker/digraph / from

Method from

backend/src/graphql/psql.rs:7–14  ·  view source on GitHub ↗
(row: &psql::user::Row)

Source from the content-addressed store, hash-verified

5
6impl 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}

Callers

nothing calls this directly

Calls 1

IDFunction · 0.85

Tested by

no test coverage detected