pub struct ReportsExtension { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Extension for ReportsExtension
impl Extension for ReportsExtension
Source§fn routes(&self, _ctx: &AppContext) -> Option<Router>
fn routes(&self, _ctx: &AppContext) -> Option<Router>
Your HTTP routes. The server mounts these under the appropriate prefix.
Source§fn migrations(&self) -> Vec<Migration>
fn migrations(&self) -> Vec<Migration>
Your database tables. The migration runner applies these at startup,
tracked in
_schema_registry.Source§fn mcp_tools(&self) -> Vec<McpToolDef>
fn mcp_tools(&self) -> Vec<McpToolDef>
MCP tool definitions exposed by this extension. Read more
Source§fn on_start(&self, ctx: &AppContext) -> Result<(), Box<dyn Error + Send + Sync>>
fn on_start(&self, ctx: &AppContext) -> Result<(), Box<dyn Error + Send + Sync>>
Called once after migrations and before routes are served.
Source§fn on_shutdown(&self) -> Result<(), Box<dyn Error + Send + Sync>>
fn on_shutdown(&self) -> Result<(), Box<dyn Error + Send + Sync>>
Called on graceful shutdown.
Source§fn subscriptions(&self) -> Vec<EventFilter>
fn subscriptions(&self) -> Vec<EventFilter>
Domain events this extension subscribes to.
Source§fn on_event(&self, event: &DomainEvent)
fn on_event(&self, event: &DomainEvent)
Called when a subscribed domain event fires.
Source§fn scheduled_tasks(&self) -> Vec<ScheduledTask>
fn scheduled_tasks(&self) -> Vec<ScheduledTask>
Periodic tasks (cron-like).
Source§fn on_scheduled_task(&self, task_name: &str)
fn on_scheduled_task(&self, task_name: &str)
Called when a scheduled task fires (cron match).
Auto Trait Implementations§
impl Freeze for ReportsExtension
impl !RefUnwindSafe for ReportsExtension
impl Send for ReportsExtension
impl Sync for ReportsExtension
impl Unpin for ReportsExtension
impl UnsafeUnpin for ReportsExtension
impl !UnwindSafe for ReportsExtension
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more