mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
15 lines
316 B
Rust
15 lines
316 B
Rust
use std::{collections::HashMap, sync::Arc};
|
|
|
|
use futures::lock::Mutex;
|
|
|
|
use crate::{Bot, User};
|
|
|
|
database_derived!(
|
|
/// Reference implementation
|
|
#[derive(Default)]
|
|
pub struct ReferenceDb {
|
|
pub bots: Arc<Mutex<HashMap<String, Bot>>>,
|
|
pub users: Arc<Mutex<HashMap<String, User>>>,
|
|
}
|
|
);
|