pub trait Filterable: Entity {
type Filter: Default + Clone + Send + Sync;
// Required method
fn filter_to_params(filter: &Self::Filter) -> HashMap<String, String>;
}Expand description
Optional trait for entities that support server-side filtering.
Implement this trait to enable filtered list queries.
Required Associated Types§
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.