MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / target_view

Method target_view

atomic-repository/src/repository/snapshot.rs:76–81  ·  view source on GitHub ↗
(&'a self, baseline: &'a str)

Source from the content-addressed store, hash-verified

74
75impl RecordLifecycle {
76 pub(super) fn target_view<'a>(&'a self, baseline: &'a str) -> &'a str {
77 match self {
78 Self::Durable | Self::Promotion { .. } => baseline,
79 Self::Snapshot { view, .. } => view,
80 }
81 }
82
83 pub(super) fn removal(&self) -> Option<(&str, Hash)> {
84 match self {

Callers 1

record_with_lifecycleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected