cln_plugin::options

Type Alias DefaultBooleanConfigOption

Source
pub type DefaultBooleanConfigOption<'a> = ConfigOption<'a, DefaultBoolean>;
Expand description

Config values are repsentedas an bool. A default is used

Aliased Type§

struct DefaultBooleanConfigOption<'a> {
    pub name: &'a str,
    pub default: bool,
    pub description: &'a str,
    pub deprecated: bool,
    pub dynamic: bool,
    pub multi: bool,
}

Fields§

§name: &'a str

The name of the ConfigOption.

§default: bool

The default value of the ConfigOption

§description: &'a str§deprecated: bool§dynamic: bool§multi: bool

Implementations§

Source§

impl<'a> DefaultBooleanConfigOption<'a>

Source

pub const fn new_bool_with_default( name: &'a str, default: bool, description: &'a str, ) -> Self

Source

pub fn dynamic(self) -> Self