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
28
29
30
31
32
pub mod archiver;
pub mod config;
pub mod enums;
pub mod mysql;
pub mod pgsql;
pub mod request;
pub mod sql;

pub trait Board {}

pub trait Endpoint {}
#[allow(dead_code)]
pub struct Identifier<E, B>
where
    E: Endpoint,
    B: Board {
    endpoint: E,
    board:    B
}

impl<E, B> Identifier<E, B>
where
    E: Endpoint,
    B: Board
{
    pub fn new(endpoint: E, board: B) -> Self {
        Self { endpoint, board }
    }
}

impl Board for enums::YotsubaBoard {}
impl Endpoint for enums::YotsubaEndpoint {}