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: String

option name that is specified by the core lightning user, like –foo

§opt_typ: String

option 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: String

description of the option that is shows to the user when lightningd –help is typed

§deprecated: bool

if the filed is deprecated

§value: Option<Value>

The value specified by the user

Implementations§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.