cln_plugin::options

Type Alias FlagConfigOption

Source
pub type FlagConfigOption<'a> = ConfigOption<'a, Flag>;
Expand description

Config value is represented as a flag

Aliased Type§

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

Fields§

§name: &'a str

The name of the ConfigOption.

§default: ()

The default value of the ConfigOption

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

Implementations§

Source§

impl<'a> FlagConfigOption<'a>

Source

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

Source

pub fn dynamic(self) -> Self