Trait CommandPlugin

Source
pub trait CommandPlugin {
    // Required methods
    fn load_commands(&self) -> Vec<Box<dyn Command>>;
    fn name(&self) -> &'static str;

    // Provided methods
    fn version(&self) -> &'static str { ... }
    fn is_available(&self) -> bool { ... }
}
Expand description

✅ PLUGIN SYSTEM für externe Commands - JETZT OBJECT-SAFE!

Required Methods§

Source

fn load_commands(&self) -> Vec<Box<dyn Command>>

Lädt alle Commands des Plugins

Source

fn name(&self) -> &'static str

Plugin Name

Provided Methods§

Source

fn version(&self) -> &'static str

Plugin Version (optional)

Source

fn is_available(&self) -> bool

Plugin ist verfügbar? (für conditional loading)

Implementors§