Skip to main content

Filter

Trait Filter 

Source
pub trait Filter: Send + Sync {
    // Required method
    fn filter(&self, table: &str) -> Result<Condition>;
}
Expand description

Adds a condition to the WHERE of every query on a table (tenancy, permissions).

PHP: Utopia\Query\Hook\Filter.

Required Methods§

Source

fn filter(&self, table: &str) -> Result<Condition>

The condition for table (the alias when the query has one).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§