summaryrefslogtreecommitdiff
path: root/protocol/src/lib.rs
blob: 8b48fecf63e0653cd4b159169051eea59e8a1172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use serde::{Deserialize, Serialize};
use uuid::Uuid;
pub mod card;
pub mod bridge_engine;
pub mod bot;
pub mod simple_bots;

#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)]
pub struct UserInfo {
    pub username: String,
    pub table: Option<Table>,
}

#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)]
pub struct Table {
    pub id: Uuid,
}

#[cfg(test)]
mod tests {
    use env_logger::Env;

    pub fn test_setup() {
        dotenv::dotenv().ok();
        let _ =env_logger::Builder::from_env(Env::default().default_filter_or("info")).is_test(true).try_init();
    }
}