Trait RuntimeDef

Source
pub trait RuntimeDef {
    type Cli: CommandCli;
    type Conf: Default + Serialize + for<'de> Deserialize<'de>;

    const NAME: &'static str;
    const VERSION: &'static str;
}
Expand description

Runtime definition trait. Auto-generated with #[derive(RuntimeDef)]

Required Associated Constants§

Source

const NAME: &'static str

Source

const VERSION: &'static str

Required Associated Types§

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§