MCPcopy Index your code
hub / github.com/emwalker/digraph / link

Function link

backend/src/git/testing.rs:41–57  ·  view source on GitHub ↗
(title: &str, url: &str)

Source from the content-addressed store, hash-verified

39}
40
41pub fn link(title: &str, url: &str) -> RepoLink {
42 let added = chrono::Utc::now();
43 RepoLink {
44 api_version: API_VERSION.to_owned(),
45 metadata: RepoLinkMetadata {
46 id: "00002".try_into().unwrap(),
47 added,
48 details: Some(RepoLinkDetails {
49 title: title.to_owned(),
50 url: url.to_owned(),
51 }),
52 },
53 parent_topics: BTreeSet::from([ParentTopic {
54 id: "00001".try_into().expect("failed to parse id"),
55 }]),
56 }
57}

Callers 5

delete_linkFunction · 0.70
delete_topicFunction · 0.70
simple_caseFunction · 0.70
updated_titleFunction · 0.70
pathsFunction · 0.70

Calls 1

try_intoMethod · 0.45

Tested by

no test coverage detected