pub trait AppendToQuery {
// Required method
fn append_to_query<Q, F>(
&self,
query: &mut Q,
privileged_guard_option: Option<F>,
)
where Q: ConditionsTarget + OrderByTarget + PageTarget,
F: FnOnce(&mut Q, &Self);
}Expand description
Append the filters query to the parent query.
Required Methods§
Sourcefn append_to_query<Q, F>(
&self,
query: &mut Q,
privileged_guard_option: Option<F>,
)
fn append_to_query<Q, F>( &self, query: &mut Q, privileged_guard_option: Option<F>, )
Append the filters query to the parent query: any target taking
conditions, an ORDER BY and a page (for sqlx, a QueryBuilder of any
BindValues database).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".