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

Method from

atomic-cli/src/commands/op/model.rs:23–28  ·  view source on GitHub ↗
(scope: OperationScope)

Source from the content-addressed store, hash-verified

21
22impl From<OperationScope> for OperationScopeDto {
23 fn from(scope: OperationScope) -> Self {
24 match scope {
25 OperationScope::Repository => Self::Repository,
26 OperationScope::WorkingCopy(id) => Self::WorkingCopy { id: id.to_string() },
27 }
28 }
29}
30
31#[derive(Debug, Clone, PartialEq, Eq, Serialize)]

Callers

nothing calls this directly

Calls 15

operation_kindFunction · 0.85
operation_scopeFunction · 0.85
timestamp_utcFunction · 0.85
verification_stateFunction · 0.85
git_hash_algorithmFunction · 0.85
checkpoint_kindFunction · 0.85
verification_scopeFunction · 0.85
digest_kindFunction · 0.85
file_kindFunction · 0.85
receipt_kindFunction · 0.85
encoding_versionMethod · 0.80
as_refMethod · 0.80

Tested by

no test coverage detected