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

Method record_str

atomic-agent/src/hook_log.rs:81–83  ·  view source on GitHub ↗
(&mut self, field: &Field, value: &str)

Source from the content-addressed store, hash-verified

79struct Fields(BTreeMap<String, String>);
80impl Visit for Fields {
81 fn record_str(&mut self, field: &Field, value: &str) {
82 self.0.insert(field.name().into(), value.into());
83 }
84 fn record_debug(&mut self, field: &Field, value: &dyn std::fmt::Debug) {
85 self.0.insert(field.name().into(), format!("{value:?}"));
86 }

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected