pub trait QueryBuilder {
type Ctx: MigrationContext;
// Required method
fn build(
&self,
ctx: &mut Self::Ctx,
) -> impl Future<Output = TernResult<Query>> + Send;
}Expand description
Required Associated Types§
Sourcetype Ctx: MigrationContext
type Ctx: MigrationContext
The context for running a migration this query is built for.
It should have all the abilities described in MigrationContext but in
addition can expose other behavior that is needed for a specific query.
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.