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

Method try_from

backend/src/psql/organization.rs:21–27  ·  view source on GitHub ↗
(row: Row)

Source from the content-addressed store, hash-verified

19 type Error = Error;
20
21 fn try_from(row: Row) -> Result<Self> {
22 Ok(Organization::Selected {
23 id: ID(row.id.to_string()),
24 name: row.name.to_owned(),
25 login: row.login,
26 })
27 }
28}
29
30pub struct OrganizationLoader {

Callers

nothing calls this directly

Calls 1

IDFunction · 0.85

Tested by

no test coverage detected