Make config structs private
This commit is contained in:
parent
28de8b1cc1
commit
9264e033fa
1 changed files with 6 additions and 6 deletions
|
|
@ -35,11 +35,11 @@ mod default {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct Web {
|
struct Web {
|
||||||
#[serde(default = "default::web_base")]
|
#[serde(default = "default::web_base")]
|
||||||
pub base: String,
|
base: String,
|
||||||
#[serde(default = "default::web_address")]
|
#[serde(default = "default::web_address")]
|
||||||
pub address: SocketAddr,
|
address: SocketAddr,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Web {
|
impl Default for Web {
|
||||||
|
|
@ -52,10 +52,10 @@ impl Default for Web {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct Repo {
|
struct Repo {
|
||||||
pub name: Option<String>,
|
name: Option<String>,
|
||||||
#[serde(default = "default::repo_update_delay", with = "humantime_serde")]
|
#[serde(default = "default::repo_update_delay", with = "humantime_serde")]
|
||||||
pub update_delay: Duration,
|
update_delay: Duration,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Repo {
|
impl Default for Repo {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue