cln_plugin::options

Type Alias StringConfigOption

Source
pub type StringConfigOption<'a> = ConfigOption<'a, String>;
Expand description

Config values are represented as a String. No default is used.

Aliased Type§

struct StringConfigOption<'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> StringConfigOption<'a>

Source

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

Source

pub fn dynamic(self) -> Self