diff --git a/src/distro.rs b/src/distro.rs new file mode 100644 index 0000000..3fe7192 --- /dev/null +++ b/src/distro.rs @@ -0,0 +1,30 @@ +use serde::Serialize; +use std::vec::Vec; + +#[derive(Serialize, Clone)] +pub struct Distro { + pub name: String, + pub summary: String, + pub icon_url: String, + pub wiki: String, + pub download: String, + pub website: String, + + pub freedom_positives: Vec, + pub freedom_negatives: Vec, + pub freedom_stars: u32, + + pub usability_positives: Vec, + pub usability_negatives: Vec, + pub usability_stars: u32, + + pub privacy_positives: Vec, + pub privacy_negatives: Vec, + pub privacy_stars: u32, +} + +#[derive(Serialize, Clone)] +pub struct DistroList { + pub distros: Vec, +} +