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

Method change

backend/src/git/link.rs:64–80  ·  view source on GitHub ↗
(
        &self,
        link: &RepoLink,
        parent_topics: &Vec<RepoTopic>,
        date: Timestamp,
    )

Source from the content-addressed store, hash-verified

62 }
63
64 fn change(
65 &self,
66 link: &RepoLink,
67 parent_topics: &Vec<RepoTopic>,
68 date: Timestamp,
69 ) -> activity::Change {
70 let mut deleted_link = activity::LinkInfo::from(link);
71 deleted_link.deleted = true;
72
73 activity::Change::DeleteLink(activity::DeleteLink {
74 actor_id: self.actor.user_id.to_owned(),
75 date,
76 deleted_link,
77 id: activity::Change::new_id(),
78 parent_topics: activity::TopicInfoList::from(parent_topics),
79 })
80 }
81}
82
83pub struct UpdateLinkParentTopics {

Callers 1

callMethod · 0.45

Calls 4

DeleteLinkClass · 0.70
UpsertLinkClass · 0.70
iterMethod · 0.45

Tested by

no test coverage detected