Skip to content

Commit

Permalink
fix(cli): add default for Server config
Browse files Browse the repository at this point in the history
Signed-off-by: Muriel Paraire <[email protected]>
  • Loading branch information
MurielParaire committed May 30, 2024
1 parent 98eec78 commit ba71651
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/shared-models/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,22 @@ pub struct CloudletShutdownResponse {
pub success: bool,
}

#[derive(Serialize, Deserialize, Debug, Default)]
#[derive(Serialize, Deserialize, Debug)]
pub struct ServerConfig {
pub address: String,
pub port: u16,
}

impl Default for ServerConfig {
fn default() -> Self {
ServerConfig {
address: String::from("localhost"),
port: 50051
}

}
}

#[derive(Serialize, Deserialize, Debug)]
pub struct BuildConfig {
#[serde(rename = "source-code-path")]
Expand Down

0 comments on commit ba71651

Please sign in to comment.