(id: ExternalId)
| 340 | |
| 341 | impl RepoTopic { |
| 342 | pub fn make_reference(id: ExternalId) -> Self { |
| 343 | Self { |
| 344 | api_version: API_VERSION.into(), |
| 345 | metadata: RepoTopicMetadata { |
| 346 | added: chrono::Utc::now(), |
| 347 | id, |
| 348 | details: None, |
| 349 | }, |
| 350 | parent_topics: BTreeSet::new(), |
| 351 | children: BTreeSet::new(), |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | pub fn added(&self) -> Timestamp { |
| 356 | self.metadata.added |
nothing calls this directly
no outgoing calls
no test coverage detected