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

Method new_str_arr_with_default

plugins/src/options.rs:642–655  ·  view source on GitHub ↗
(
        name: &'a str,
        default: &'a str,
        description: &'a str,
    )

Source from the content-addressed store, hash-verified

640
641impl<'a> DefaultStringArrayConfigOption<'a> {
642 pub const fn new_str_arr_with_default(
643 name: &'a str,
644 default: &'a str,
645 description: &'a str,
646 ) -> Self {
647 Self {
648 name,
649 default,
650 description,
651 deprecated: false,
652 dynamic: false,
653 multi: true,
654 }
655 }
656 pub fn dynamic(mut self) -> Self {
657 self.dynamic = true;
658 self

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected