Skip to content

Commit

Permalink
fix: config parse error #77
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Jan 4, 2024
1 parent 6b1de4e commit b9640a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ pub struct Config {
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct Auth {
#[serde(default)]
pub accounts: Vec<Account>,
#[serde(default)]
pub tokens: Vec<String>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Account {
#[serde(default)]
pub username: String,
#[serde(default)]
pub password: String,
}

Expand Down

0 comments on commit b9640a4

Please sign in to comment.