kellnr-settings 5.11.0

Kellnr is a self-hosted registry for Rust crates with support for rustdocs and crates.io caching.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize, Eq, PartialEq, Clone)]
#[serde(default)]
pub struct Setup {
    pub admin_pwd: String,
    pub admin_token: String,
}

impl Default for Setup {
    fn default() -> Self {
        Self {
            admin_pwd: "admin".to_string(),
            admin_token: "Zy9HhJ02RJmg0GCrgLfaCVfU6IwDfhXD".to_string(),
        }
    }
}