framework-cqrs-lib 0.5.1

handle state-machine with data persist in journal and store mongo for restfull actix api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Clone, Debug)]
pub struct ApiKey {
    pub name: String,
    pub key: String,
}

impl ApiKey {
    pub fn new(name: &str, key: &str) -> Self {
        Self {
            name: name.to_string(),
            key: key.to_string()
        }
    }
}