kellnr-settings 5.11.0

Kellnr is a self-hosted registry for Rust crates with support for rustdocs and crates.io caching.
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize, Eq, PartialEq, Clone)]
#[serde(default)]
pub struct Postgresql {
    pub enabled: bool,
    pub address: String,
    pub port: u16,
    pub db: String,
    pub user: String,
    #[serde(skip_serializing, default)]
    pub pwd: String,
}

impl Default for Postgresql {
    fn default() -> Self {
        Self {
            enabled: false,
            address: "localhost".to_string(),
            port: 5432,
            db: "kellnr".to_string(),
            user: String::new(),
            pwd: String::new(),
        }
    }
}