pub trait Factory: Sized {
type Model;
// Required method
fn create<C: ConnectionTrait>(
self,
connection: &C,
) -> impl Future<Output = Result<Self::Model>> + Send;
}Expand description
An application-owned record builder. Implement with native SeaORM operations. Passing a borrowed connection permits both a pool and an existing transaction.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".