aboutsummaryrefslogtreecommitdiff
path: root/examples/factory/interfaces/user.rs
blob: 5a603171891a54940033f14d0752b56b2c3b8702 (plain)
1
2
3
4
5
6
7
8
9
10
11
use syrette::ptr::TransientPtr;

pub trait IUser
{
    fn get_name(&self) -> &'static str;
    fn get_date_of_birth(&self) -> &'static str;
    fn get_password(&self) -> &'static str;
}

pub type IUserFactory =
    dyn Fn(&'static str, &'static str, &'static str) -> TransientPtr<dyn IUser>;