From 6edd6f93997e2768fd46c54871657cd1bf8e590f Mon Sep 17 00:00:00 2001 From: susiyaki Date: Wed, 3 Nov 2021 15:44:18 +0900 Subject: [PATCH] fix struct error --- src/config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config.rs b/src/config.rs index 14cdecc..6dff669 100644 --- a/src/config.rs +++ b/src/config.rs @@ -51,6 +51,7 @@ impl Default for Config { Self { conn: vec![Connection { r#type: DatabaseType::MySql, + name: None, user: Some("root".to_string()), host: Some("localhost".to_string()), port: Some(3306), @@ -67,6 +68,7 @@ impl Default for Config { #[derive(Debug, Deserialize, Clone)] pub struct Connection { r#type: DatabaseType, + name: Option, user: Option, host: Option, port: Option,