14 lines
504 B
Rust
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>,
|
|
}
|