rename
This commit is contained in:
parent
3e8ae79727
commit
6e4e7f7386
2 changed files with 3 additions and 3 deletions
|
@ -372,7 +372,7 @@ fn create_new_server_config(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let auto_email = match meta.email.as_ref() {
|
let email = match meta.email.as_ref() {
|
||||||
Some(address) => Some(server::Email {
|
Some(address) => Some(server::Email {
|
||||||
enabled: meta.enable_email,
|
enabled: meta.enable_email,
|
||||||
address: address.to_owned(),
|
address: address.to_owned(),
|
||||||
|
@ -487,7 +487,7 @@ fn create_new_server_config(
|
||||||
.try_into()
|
.try_into()
|
||||||
.map_err(|_| Error::InvalidConfig("Invalid `port` number"))?,
|
.map_err(|_| Error::InvalidConfig("Invalid `port` number"))?,
|
||||||
},
|
},
|
||||||
auto_email,
|
email,
|
||||||
http_proxy,
|
http_proxy,
|
||||||
media_proxy,
|
media_proxy,
|
||||||
summaly_proxy,
|
summaly_proxy,
|
||||||
|
|
|
@ -40,7 +40,7 @@ pub struct Network {
|
||||||
pub listen: Listen,
|
pub listen: Listen,
|
||||||
#[validate(nested)]
|
#[validate(nested)]
|
||||||
#[validate(custom(function = "validate_email_struct"))]
|
#[validate(custom(function = "validate_email_struct"))]
|
||||||
pub auto_email: Option<Email>,
|
pub email: Option<Email>,
|
||||||
#[validate(nested)]
|
#[validate(nested)]
|
||||||
pub http_proxy: Option<Proxy>,
|
pub http_proxy: Option<Proxy>,
|
||||||
#[validate(nested)]
|
#[validate(nested)]
|
||||||
|
|
Loading…
Reference in a new issue