aboutsummaryrefslogtreecommitdiff
path: root/lockchain-files/src/userstore.rs
blob: 07c57fda96b879fa5a10f93e97eadb517e8fbd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! This module maps the lockchain internal `UserStore` into a
//! structure that can be saved to disk.

use lcc::users::UserStore;

pub struct UserStoreMapper {
    inner: UserStore,
}

impl UserStoreMapper {
    pub fn new() -> Self {
        Self {
            inner: UserStore::new(),
        }
    }

    pub fn load(store: UserStore) -> Self {
        Self { inner: store }
    }
}