diff --git a/src/installer.rs b/src/installer.rs index 2c6256b..c758c48 100644 --- a/src/installer.rs +++ b/src/installer.rs @@ -54,7 +54,7 @@ pub enum InstallMessage { EOF, } -#[derive(Serialize, Deserialize, Clone)] +#[derive(Serialize, Deserialize, Default, Clone)] pub struct Credentials { #[serde(default)] pub username: String, @@ -67,6 +67,7 @@ pub struct Credentials { pub struct InstallationDatabase { pub packages: Vec, pub shortcuts: Vec, + #[serde(default)] pub credentials: Credentials, }