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

Method convert_default

plugins/src/options.rs:201–203  ·  view source on GitHub ↗
(value: &Self::DefaultValue)

Source from the content-addressed store, hash-verified

199 type DefaultValue = &'a str;
200
201 fn convert_default(value: &Self::DefaultValue) -> Option<Value> {
202 Some(Value::String(value.to_string()))
203 }
204
205 fn from_value(value: &Option<Value>) -> Self::OutputValue {
206 match value {

Callers

nothing calls this directly

Calls 4

StringClass · 0.85
IntegerClass · 0.85
BooleanClass · 0.85
to_stringMethod · 0.45

Tested by

no test coverage detected