(
&self,
topic: &RepoTopic,
parent_topics: &Vec<RepoTopic>,
child_links: &Vec<RepoLink>,
child_topics: &Vec<RepoTopic>,
date: Timestamp,
)
| 163 | } |
| 164 | |
| 165 | fn change( |
| 166 | &self, |
| 167 | topic: &RepoTopic, |
| 168 | parent_topics: &Vec<RepoTopic>, |
| 169 | child_links: &Vec<RepoLink>, |
| 170 | child_topics: &Vec<RepoTopic>, |
| 171 | date: Timestamp, |
| 172 | ) -> activity::Change { |
| 173 | let mut deleted_topic = activity::TopicInfo::from(topic); |
| 174 | deleted_topic.deleted = true; |
| 175 | |
| 176 | activity::Change::DeleteTopic(activity::DeleteTopic { |
| 177 | actor_id: self.actor.user_id.to_owned(), |
| 178 | child_links: activity::LinkInfoList::from(child_links), |
| 179 | child_topics: activity::TopicInfoList::from(child_topics), |
| 180 | date, |
| 181 | deleted_topic, |
| 182 | id: activity::Change::new_id(), |
| 183 | parent_topics: activity::TopicInfoList::from(parent_topics), |
| 184 | }) |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | pub struct RemoveTopicTimerange { |
no test coverage detected