cln_plugin::options

Trait OptionType

Source
pub trait OptionType<'a> {
    type OutputValue;
    type DefaultValue;

    // Required methods
    fn convert_default(value: &Self::DefaultValue) -> Option<Value>;
    fn from_value(value: &Option<Value>) -> Self::OutputValue;
    fn get_value_type() -> ValueType;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§