mirror of
https://github.com/mikedilger/chorus.git
synced 2026-01-03 06:15:33 +00:00
Extend config with name, description, and pubkey
This commit is contained in:
parent
0a228680c2
commit
ee40be7625
@ -1,4 +1,7 @@
|
||||
Config(
|
||||
ip_address: "127.0.0.1",
|
||||
port: 8080,
|
||||
name: None,
|
||||
description: None,
|
||||
public_key_hex: None,
|
||||
)
|
||||
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user