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

Method make_reference

backend/src/git/types.rs:342–353  ·  view source on GitHub ↗
(id: ExternalId)

Source from the content-addressed store, hash-verified

340
341impl 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected