Configurable

Trait Configurable 

Source
pub trait Configurable: DeserializeOwned {
    const FIELDS: &'static [&'static str];
    const COMPANION: &'static str;
    const SHORTCUT_MODE: ShortcutMode;

    // Provided method
    fn with_args(args: Args<'_>) -> Result<Self, Error> { ... }
}

Required Associated Constants§

Source

const FIELDS: &'static [&'static str]

配置字段

Source

const COMPANION: &'static str

配置类关联的Make名称

Source

const SHORTCUT_MODE: ShortcutMode

配置快捷模式

Provided Methods§

Source

fn with_args(args: Args<'_>) -> Result<Self, Error>

使用Args反序列化自身

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§