Files
donquota/src/server/config.rs
2026-01-10 00:09:10 +09:00

14 lines
504 B
Rust

use serde::{Deserialize, Serialize};
pub const DEFAULT_CONFIG_PATH: &str = "/etc/donquota/config.toml";
pub const DEFAULT_CLIENT_SOCKET_PATH: &str = "/run/donquota/server_client.sock";
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct Config {
/// Path to the Unix domain socket for client-server communication.
///
/// If left as `None`, the server expects to be served a file descriptor to the socket named 'client'.
pub client_socket_path: Option<String>,
}