Struct cln_plugin::options::ConfigOption
source · pub struct ConfigOption<'a, V: OptionType<'a>> {
pub name: &'a str,
pub default: V::DefaultValue,
pub description: &'a str,
pub deprecated: bool,
}Fields§
§name: &'a strThe name of the ConfigOption.
default: V::DefaultValueThe default value of the ConfigOption
description: &'a str§deprecated: boolImplementations§
source§impl<'a, V: OptionType<'a>> ConfigOption<'a, V>
impl<'a, V: OptionType<'a>> ConfigOption<'a, V>
pub fn build(&self) -> UntypedConfigOption
source§impl<'a> ConfigOption<'a, DefaultString>
impl<'a> ConfigOption<'a, DefaultString>
pub const fn new_str_with_default( name: &'a str, default: &'a str, description: &'a str ) -> Self
source§impl<'a> ConfigOption<'a, String>
impl<'a> ConfigOption<'a, String>
pub const fn new_str_no_default(name: &'a str, description: &'a str) -> Self
source§impl<'a> ConfigOption<'a, DefaultInteger>
impl<'a> ConfigOption<'a, DefaultInteger>
pub const fn new_i64_with_default( name: &'a str, default: i64, description: &'a str ) -> Self
source§impl<'a> ConfigOption<'a, Integer>
impl<'a> ConfigOption<'a, Integer>
pub const fn new_i64_no_default(name: &'a str, description: &'a str) -> Self
source§impl<'a> ConfigOption<'a, Boolean>
impl<'a> ConfigOption<'a, Boolean>
pub const fn new_bool_no_default(name: &'a str, description: &'a str) -> Self
source§impl<'a> ConfigOption<'a, DefaultBoolean>
impl<'a> ConfigOption<'a, DefaultBoolean>
pub const fn new_bool_with_default( name: &'a str, default: bool, description: &'a str ) -> Self
source§impl<'a> ConfigOption<'a, Flag>
impl<'a> ConfigOption<'a, Flag>
source§impl<'a, V> ConfigOption<'a, V>where
V: OptionType<'a>,
impl<'a, V> ConfigOption<'a, V>where
V: OptionType<'a>,
Trait Implementations§
source§impl<'a, V: Clone + OptionType<'a>> Clone for ConfigOption<'a, V>where
V::DefaultValue: Clone,
impl<'a, V: Clone + OptionType<'a>> Clone for ConfigOption<'a, V>where
V::DefaultValue: Clone,
source§fn clone(&self) -> ConfigOption<'a, V>
fn clone(&self) -> ConfigOption<'a, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a, V: Debug + OptionType<'a>> Debug for ConfigOption<'a, V>where
V::DefaultValue: Debug,
impl<'a, V: Debug + OptionType<'a>> Debug for ConfigOption<'a, V>where
V::DefaultValue: Debug,
Auto Trait Implementations§
impl<'a, V> RefUnwindSafe for ConfigOption<'a, V>
impl<'a, V> Send for ConfigOption<'a, V>
impl<'a, V> Sync for ConfigOption<'a, V>
impl<'a, V> Unpin for ConfigOption<'a, V>
impl<'a, V> UnwindSafe for ConfigOption<'a, V>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more