feat: added default for Bin so hashmap doesn't have to be specified
This commit is contained in:
parent
cd59b6463a
commit
323496f576
1 changed files with 10 additions and 0 deletions
|
@ -5,5 +5,15 @@ use serde::{Deserialize, Serialize};
|
|||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Bin {
|
||||
pub root: String,
|
||||
#[serde(default)]
|
||||
pub checksums: HashMap<String, String>,
|
||||
}
|
||||
|
||||
impl Default for Bin {
|
||||
fn default() -> Self {
|
||||
Bin {
|
||||
root: String::default(),
|
||||
checksums: HashMap::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue