This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug)] | |
struct Config { | |
host: String, | |
target: String, | |
port: i32, | |
timeout: i32, | |
} | |
impl Default for Config { | |
fn default() -> Self { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug)] | |
struct Server { | |
host: String, | |
target: String, | |
port: i32, | |
timeout: i32, | |
} | |
impl Default for Server { | |
fn default() -> Self { |