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

Method build

plugins/src/options.rs:590–600  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

588
589impl<'a, V: OptionType<'a>> ConfigOption<'a, V> {
590 pub fn build(&self) -> UntypedConfigOption {
591 UntypedConfigOption {
592 name: self.name.to_string(),
593 value_type: V::get_value_type(),
594 default: <V as OptionType>::convert_default(&self.default),
595 description: self.description.to_string(),
596 deprecated: self.deprecated,
597 dynamic: self.dynamic,
598 multi: self.multi,
599 }
600 }
601}
602
603impl<'a> DefaultStringConfigOption<'a> {

Callers 2

newMethod · 0.45

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected