torrust-actix 4.2.3

A rich, fast and efficient Bittorrent Tracker.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::database::enums::database_drivers::DatabaseDrivers;
use serde::{
    Deserialize,
    Serialize
};

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct DatabaseConfig {
    pub engine: DatabaseDrivers,
    pub path: String,
    pub persistent: bool,
    pub persistent_interval: u64,
    pub insert_vacant: bool,
    pub remove_action: bool,
    pub update_completed: bool,
    pub update_peers: bool
}