From 7fce2ee0e4081a903c31fde3688776fd4cde57c6 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 25 May 2023 18:35:00 +0200 Subject: [PATCH] defined distro --- src/distro.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/distro.rs 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, +} +