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

Method from_value

plugins/src/options.rs:205–210  ·  view source on GitHub ↗
(value: &Option<Value>)

Source from the content-addressed store, hash-verified

203 }
204
205 fn from_value(value: &Option<Value>) -> Self::OutputValue {
206 match value {
207 Some(Value::String(s)) => s.to_string(),
208 _ => panic!("Type mismatch. Expected string but found {:?}", value),
209 }
210 }
211
212 fn get_value_type() -> ValueType {
213 ValueType::String

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected