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 {
|
||||
enabled: meta.enable_email,
|
||||
address: address.to_owned(),
|
||||
|
@ -487,7 +487,7 @@ fn create_new_server_config(
|
|||
.try_into()
|
||||
.map_err(|_| Error::InvalidConfig("Invalid `port` number"))?,
|
||||
},
|
||||
auto_email,
|
||||
email,
|
||||
http_proxy,
|
||||
media_proxy,
|
||||
summaly_proxy,
|
||||
|
|
|
@ -40,7 +40,7 @@ pub struct Network {
|
|||
pub listen: Listen,
|
||||
#[validate(nested)]
|
||||
#[validate(custom(function = "validate_email_struct"))]
|
||||
pub auto_email: Option<Email>,
|
||||
pub email: Option<Email>,
|
||||
#[validate(nested)]
|
||||
pub http_proxy: Option<Proxy>,
|
||||
#[validate(nested)]
|
||||
|
|
Loading…
Reference in a new issue