Trait rusqlite_migration::MigrationHook
source · pub trait MigrationHook: Fn(&Transaction<'_>) -> HookResult + Send + Sync {
// Required method
fn clone_box(&self) -> Box<dyn MigrationHook>;
}
Expand description
Helper trait to make hook functions cloneable.
Required Methods§
sourcefn clone_box(&self) -> Box<dyn MigrationHook>
fn clone_box(&self) -> Box<dyn MigrationHook>
Clone self.