Crate qualomat_schema

Source
Expand description

§qualomat_schema

crates.io Docs

A Rust crate for reading data from the qual-o-mat-data repository, which is an open data archive for the german voting advice tool Wahl-O-Mat.

§Usage

Clone the data repository:

git clone https://github.com/gockelhahn/qual-o-mat-data

Read the data for all elections:

let elections = Election::read_all_from_path("qual-o-mat-data")?;

§Code generation

The generated code was created from the Qual-O-Mat schema using typify and the code in qualomat_schema_gen.

Modules§

json
Loading data from json files.

Structs§

Answer
Answer
Category
Category
Comment
Comment
Election
All the data available for a single election
ElectionListItem
Path to a specific election in the dataset. Election
ElectionOverview
Overview and info of an election
Opinion
Opinion
Party
Party
Statement
Statement