pub struct BackupExtension { /* private fields */ }Expand description
The Extension entry point for data retention, backup & disaster recovery.
Implementations§
Trait Implementations§
Source§impl Default for BackupExtension
impl Default for BackupExtension
Source§impl Extension for BackupExtension
impl Extension for BackupExtension
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 on_start(&self, _ctx: &AppContext) -> ExtResult<()>
fn on_start(&self, _ctx: &AppContext) -> ExtResult<()>
Called once after migrations and before routes are served.
Source§fn scheduled_tasks(&self) -> Vec<ScheduledTask>
fn scheduled_tasks(&self) -> Vec<ScheduledTask>
Periodic tasks (cron-like).
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_shutdown(&self) -> Result<(), Box<dyn Error + Sync + Send>>
fn on_shutdown(&self) -> Result<(), Box<dyn Error + Sync + Send>>
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 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 BackupExtension
impl !RefUnwindSafe for BackupExtension
impl Send for BackupExtension
impl Sync for BackupExtension
impl Unpin for BackupExtension
impl UnsafeUnpin for BackupExtension
impl !UnwindSafe for BackupExtension
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