diff --git a/sample/sample.config.ron b/sample/sample.config.ron index 9348a43..edb8308 100644 --- a/sample/sample.config.ron +++ b/sample/sample.config.ron @@ -1,4 +1,7 @@ Config( ip_address: "127.0.0.1", port: 8080, + name: None, + description: None, + public_key_hex: None, ) \ No newline at end of file diff --git a/src/config.rs b/src/config.rs index 97548bb..4de9174 100644 --- a/src/config.rs +++ b/src/config.rs @@ -4,6 +4,9 @@ use serde::{Deserialize, Serialize}; pub struct Config { pub ip_address: String, pub port: u16, + pub name: Option, + pub description: Option, + pub public_key_hex: Option, } impl Default for Config { @@ -11,6 +14,9 @@ impl Default for Config { Config { ip_address: "127.0.0.1".to_string(), port: 80, + name: None, + description: None, + public_key_hex: None, } } }