cln_plugin::options

Type Alias DefaultStringConfigOption

Source
pub type DefaultStringConfigOption<'a> = ConfigOption<'a, DefaultString>;
Expand description

Config values are repsentedas an String. A default is used

Aliased Type§

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

Fields§

§name: &'a str

The name of the ConfigOption.

§default: &'a str

The default value of the ConfigOption

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

Implementations§

Source§

impl<'a> DefaultStringConfigOption<'a>

Source

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

Source

pub fn dynamic(self) -> Self