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

Function is_redacted

atomic-agent/src/transcript/storage.rs:237–245  ·  view source on GitHub ↗

Check if a change's unhashed data has been redacted.

(change: &atomic_core::change::Change)

Source from the content-addressed store, hash-verified

235
236/// Check if a change's unhashed data has been redacted.
237pub fn is_redacted(change: &atomic_core::change::Change) -> bool {
238 change
239 .unhashed
240 .as_ref()
241 .and_then(|v| v.get(UNHASHED_KEY))
242 .and_then(|v| v.get("redacted"))
243 .and_then(|v| v.as_bool())
244 .unwrap_or(false)
245}

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected