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

Function usable

atomic-agent/src/hook_log.rs:20–24  ·  view source on GitHub ↗
(value: Option<&str>)

Source from the content-addressed store, hash-verified

18}
19
20fn usable(value: Option<&str>) -> Option<String> {
21 value
22 .filter(|value| !value.is_empty() && *value != "unknown")
23 .map(str::to_owned)
24}
25
26impl HookContext {
27 /// Best-effort extraction keeps invalid JSON attributable when the caller

Callers 4

from_event_payloadMethod · 0.85
with_environmentMethod · 0.85
fieldMethod · 0.85
on_eventMethod · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected