symbols-models 0.1.2

Proc-macro utility to populate enums from database data (shared traits)
Documentation
1
2
3
4
5
6
7
8
9
10
use sea_orm::{
    sea_query::{Expr, SimpleExpr},
    EntityTrait,
};

pub trait EntityFilter: EntityTrait + Default {
    fn filter() -> SimpleExpr {
        Expr::val(1).eq(1)
    }
}