acme_data/models/
mod.rs

1pub use crate::models::{tokens::*, users::*};
2
3mod tokens;
4mod users;
5
6pub trait AsyncModel {
7    type Actor;
8    type Client;
9    type Config;
10    type Data;
11
12    fn controller(config: Self::Config);
13    fn constructor(&self) -> Result<Self, Box<dyn std::error::Error>>
14    where
15        Self: Sized;
16}
17
18pub trait StandardModel {
19    type Actor;
20    type Client;
21    type Config;
22    type Data;
23}