fabaccess-bffh/src/db.rs

23 lines
375 B
Rust
Raw Normal View History

2020-11-20 13:06:55 +01:00
use std::sync::Arc;
2020-10-26 12:58:55 +01:00
/// Access control storage
///
/// Stores&Retrieves Permissions and Roles
2020-10-23 16:35:10 +02:00
pub mod access;
2020-10-26 12:58:55 +01:00
/// User storage
///
/// Stores&Retrieves Users
pub mod user;
/// Machine storage
///
/// Stores&Retrieves Machines
pub mod machine;
2020-11-17 12:09:45 +01:00
2020-11-20 13:06:55 +01:00
#[derive(Clone)]
2020-11-17 12:09:45 +01:00
pub struct Databases {
2020-11-20 13:06:55 +01:00
pub access: Arc<access::AccessControl>,
pub machine: Arc<machine::MachineDB>,
2020-11-17 12:09:45 +01:00
}