Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'shared-style'
Browse files Browse the repository at this point in the history
  • Loading branch information
cikzh committed Mar 26, 2024
2 parents 67c9f51 + bb0ac3e commit af43702
Show file tree
Hide file tree
Showing 3 changed files with 392 additions and 2 deletions.
16 changes: 16 additions & 0 deletions src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub struct Lijst {
naam: String,
lijstnummer: u64,
kandidaten: Vec<Kandidaat>,
kieskringen: Vec<Kieskring>,
}

#[derive(Serialize, Deserialize)]
Expand All @@ -47,6 +48,21 @@ pub struct ModelP22_1Input {
datum: String,
partijen: Vec<Party>,
stemmen: Vec<Lijst>,
kieskringen: Vec<KieskringTotals>,
}

#[derive(Serialize, Deserialize)]
pub struct KieskringTotals {
number: u64,
total_stemmen: u64,
blanco_stemmen: u64,
ongeldige_stemmen: u64,
}

#[derive(Serialize, Deserialize)]
pub struct Kieskring {
number: u64,
votes: u64,
}

#[derive(Serialize, Deserialize)]
Expand Down
Loading

0 comments on commit af43702

Please sign in to comment.