MCPcopy Create free account
hub / github.com/ElementsProject/lightning / visit_str

Method visit_str

plugins/rest-plugin/src/yaml.rs:133–140  ·  view source on GitHub ↗
(self, v: &str)

Source from the content-addressed store, hash-verified

131 }
132
133 fn visit_str<E>(self, v: &str) -> Result<Value, E>
134 where
135 E: de::Error,
136 {
137 self.budget.add_bytes::<E>(v.len())?;
138 self.budget.bump_node::<E>()?;
139 Ok(Value::String(v.to_owned()))
140 }
141
142 fn visit_none<E>(self) -> Result<Value, E>
143 where

Callers

nothing calls this directly

Calls 1

StringClass · 0.85

Tested by

no test coverage detected