common::dao

Function filter

pub fn filter<T, D>(dto: D, conn: &PgConnection) -> Result<Vec<T>, Error>