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

Method new_bool_with_default

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

Source from the content-addressed store, hash-verified

767
768impl<'a> DefaultBooleanConfigOption<'a> {
769 pub const fn new_bool_with_default(name: &'a str, default: bool, description: &'a str) -> Self {
770 Self {
771 name,
772 description,
773 default: default,
774 deprecated: false,
775 dynamic: false,
776 multi: false,
777 }
778 }
779 pub fn dynamic(mut self) -> Self {
780 self.dynamic = true;
781 self

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected