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