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

Method new_flag

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

Source from the content-addressed store, hash-verified

784
785impl<'a> FlagConfigOption<'a> {
786 pub const fn new_flag(name: &'a str, description: &'a str) -> Self {
787 Self {
788 name,
789 description,
790 default: (),
791 deprecated: false,
792 dynamic: false,
793 multi: false,
794 }
795 }
796 pub fn dynamic(mut self) -> Self {
797 self.dynamic = true;
798 self

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected