Added #[derive(Default)] for `NodeClientConfig`
@@ -26,20 +26,20 @@ pub const CONTRACT_CALL_STATE_FIELDS: &str = "id status transaction_id";
pub const MSG_STATE_FIELD_NAME: &str = "status";
// Represents config to connect with Rethink DB and Kafka
-#[derive(Debug, Deserialize, Serialize)]
+#[derive(Debug, Default, Deserialize, Serialize)]
pub struct QueriesConfig {
pub queries_server: String,
pub subscriptions_server: String,
}
// Represents config to connect with Rethink DB and Kafka
-#[derive(Debug, Deserialize, Serialize)]
+#[derive(Debug, Default, Deserialize, Serialize)]
pub struct RequestsConfig {
pub requests_server: String,
}
// Represents config to connect with Rethink DB and Kafka
-#[derive(Debug, Deserialize, Serialize)]
+#[derive(Debug, Default, Deserialize, Serialize)]
pub struct NodeClientConfig {
pub queries_config: QueriesConfig,
pub requests_config: RequestsConfig,
