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

Interface OptionType

plugins/src/options.rs:186–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184pub type FlagConfigOption<'a> = ConfigOption<'a, config_type::Flag>;
185
186pub trait OptionType<'a> {
187 type OutputValue;
188 type DefaultValue;
189
190 fn convert_default(value: &Self::DefaultValue) -> Option<Value>;
191
192 fn from_value(value: &Option<Value>) -> Self::OutputValue;
193
194 fn get_value_type() -> ValueType;
195}
196
197impl<'a> OptionType<'a> for config_type::DefaultString {
198 type OutputValue = String;

Callers

nothing calls this directly

Implementers 1

options.rsplugins/src/options.rs

Calls

no outgoing calls

Tested by

no test coverage detected