pub trait DatabaseSetup<D: Driver + 'static> {
// Required method
async fn setup(
conn: &mut (impl EasyExecutor<D> + Send + Sync),
) -> Result<()>;
}Expand description
Defines part of the database to initialize
Prefer implementing this trait via the DatabaseSetup derive macro;
manual implementations may need updates across releases.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.