diff --git a/src/shared-models/src/lib.rs b/src/shared-models/src/lib.rs index b90c42a..503c297 100644 --- a/src/shared-models/src/lib.rs +++ b/src/shared-models/src/lib.rs @@ -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")]