Struct clightningrpc_plugin::types::RpcOption
source · pub struct RpcOption {
pub name: String,
pub opt_typ: String,
pub default: Option<String>,
pub description: String,
pub deprecated: bool,
pub value: Option<Value>,
}Fields§
§name: Stringoption name that is specified by the core lightning user, like –foo
opt_typ: Stringoption type, that can be specified like the enum
default: Option<String>default value, that can be specified only as string and core lightning will convert it for you :) smart right?
description: Stringdescription of the option that is shows to the user when lightningd –help is typed
deprecated: boolif the filed is deprecated
value: Option<Value>The value specified by the user
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for RpcOption
impl<'de> Deserialize<'de> for RpcOption
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more