blob: 70cd632619783c0186c4e9b0e1864d740b2fa104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
  | 
use syrette::factory;
use syrette::interfaces::factory::IFactory;
pub trait IUser
{
    fn get_name(&self) -> &'static str;
    fn get_date_of_birth(&self) -> &'static str;
    fn get_password(&self) -> &'static str;
}
#[factory]
pub type IUserFactory =
    dyn IFactory<(&'static str, &'static str, &'static str), dyn IUser>;
 
  |