pub trait Seeder: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn run<'a>(
&'a self,
pool: &'a DbPool,
) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'a>>;
}Available on crate features
model-mysql or model-postgres or model-sqlite only.Expand description
Rows put in a database by Rust code; see the module docs.
Seeders::add makes one from a closure.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".