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
Auto Trait Implementations§
impl Freeze for RpcOption
impl RefUnwindSafe for RpcOption
impl Send for RpcOption
impl Sync for RpcOption
impl Unpin for RpcOption
impl UnwindSafe for RpcOption
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