Skip to main content

CommandSchema

Trait CommandSchema 

Source
pub trait CommandSchema {
    const KIND: u8;

    // Required method
    fn definition() -> &'static CommandDefinition;
}
Expand description

Trait implemented by generated command types.

Required Associated Constants§

Source

const KIND: u8

Stable command kind.

Required Methods§

Source

fn definition() -> &'static CommandDefinition

Returns the static command definition.

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§