Skip to content

Commit

Permalink
[#83] RunConfig 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
myyrakle committed Mar 31, 2024
1 parent 4679807 commit c93da5c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize)]
pub struct RunConfig {
pub port: u32,
pub host: String,
}

impl Default for RunConfig {
fn default() -> Self {
Self {
port: 55555,
host: "0.0.0.0".to_string(),
}
}
}

0 comments on commit c93da5c

Please sign in to comment.