pub trait CreateEntity<Db>: Entitywhere
Db: Database,{
// Required method
fn create<Ctx>(
ctx: &Ctx,
tx: &mut Transaction<'_, Db>,
input: Self::Create,
) -> impl Future<Output = Result<Self, Error>> + Send
where Ctx: DbCtx<Db> + Sync;
}Required Methods§
fn create<Ctx>( ctx: &Ctx, tx: &mut Transaction<'_, Db>, input: Self::Create, ) -> impl Future<Output = Result<Self, Error>> + Send
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.