X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=src%2Fconfig.rs;h=fbda1426471db57d3c4b923c88d810710fecbc6c;hb=HEAD;hp=30a4990fd5bd468c3e8067cac7cf10d42d41f5bc;hpb=bd25470e4d4c104ab661fe6212f56179d9a32b32;p=stakingWatchdog.git diff --git a/src/config.rs b/src/config.rs index 30a4990..fbda142 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,4 +1,4 @@ -use std::{fs::File, time}; +use std::fs::File; use anyhow::Result; use ron::{ @@ -10,11 +10,19 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Deserialize, Serialize)] pub struct Config { pub pub_keys: Vec, + pub smtp_relay_address: String, + pub smtp_login: String, + pub smtp_password: String, } impl Config { pub fn default() -> Self { - Config { pub_keys: vec![] } + Config { + pub_keys: vec![], + smtp_relay_address: "mail.something.com".to_string(), + smtp_login: "login".to_string(), + smtp_password: "password".to_string(), + } } pub fn read(file_path: &str) -> Result {