mirror of
https://github.com/mikedilger/chorus.git
synced 2026-11-19 15:24:25 +00:00
Extend config with name, description, and pubkey
This commit is contained in:
1 parent
0a228680c2
commit
ee40be7625
2 files changed
+9
No files matched your search
@@ -4,6 +4,9 @@ use serde::{Deserialize, Serialize};
|
||||
pub struct Config {
|
||||
pub ip_address: String,
|
||||
pub port: u16,
|
||||
pub name: Option<String>,
|
||||
pub description: Option<String>,
|
||||
pub public_key_hex: Option<String>,
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user