Trait ExtensionTrait

Source
pub trait ExtensionTrait: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn extend(&self, router: Router) -> Router;
}
Expand description

Defines the interface for extensions that can be registered with the Core system. Extensions must implement this trait to extend the functionality of the Core system.

Required Methods§

Source

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

Returns the name of the extension.

Source

fn extend(&self, router: Router) -> Router

Extends the provided router with additional routes or middleware.

Implementors§