feat: added default for Bin so hashmap doesn't have to be specified
This commit is contained in:
parent
24993f2f22
commit
671590a2fa
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