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

Method try_from

backend/src/graphql/link.rs:26–31  ·  view source on GitHub ↗
(value: Option<Link>)

Source from the content-addressed store, hash-verified

24 type Error = Error;
25
26 fn try_from(value: Option<Link>) -> Result<Self> {
27 match value {
28 Some(link) => Ok(link),
29 None => Err(Error::NotFound("link not found".into())),
30 }
31 }
32}
33
34pub struct RepoLink<'l>(pub(crate) &'l git::RepoLinkWrapper);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected