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

Function entry_status_label

atomic-cli/src/commands/rpc.rs:40–45  ·  view source on GitHub ↗

The raw status label for a wire entry's status enum — the label the update report and the listing rows print (falls back to the entry's carried `status_label` for non-lifecycle statuses).

(status: i32)

Source from the content-addressed store, hash-verified

38/// update report and the listing rows print (falls back to the entry's
39/// carried `status_label` for non-lifecycle statuses).
40pub(crate) fn entry_status_label(status: i32) -> Option<String> {
41 Status::try_from(status)
42 .ok()
43 .map(status_str)
44 .map(str::to_string)
45}
46
47// ---------------------------------------------------------------------------
48// vault entry bundles — the wire-carried lift/classification inputs

Callers

nothing calls this directly

Calls 1

okMethod · 0.45

Tested by

no test coverage detected