16 lines
272 B
Rust
16 lines
272 B
Rust
#[derive(Debug, Clone)]
|
|
pub enum BackendType {
|
|
Redb,
|
|
Sled,
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct DBOption {
|
|
pub dir: String,
|
|
pub port: u16,
|
|
pub debug: bool,
|
|
pub encrypt: bool,
|
|
pub encryption_key: Option<String>,
|
|
pub backend: BackendType,
|
|
}
|