defined distro

main
Sara 2023-05-25 18:35:00 +02:00
parent 97213209fd
commit 7fce2ee0e4
1 changed files with 30 additions and 0 deletions

30
src/distro.rs Normal file
View File

@ -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<String>,
pub freedom_negatives: Vec<String>,
pub freedom_stars: u32,
pub usability_positives: Vec<String>,
pub usability_negatives: Vec<String>,
pub usability_stars: u32,
pub privacy_positives: Vec<String>,
pub privacy_negatives: Vec<String>,
pub privacy_stars: u32,
}
#[derive(Serialize, Clone)]
pub struct DistroList {
pub distros: Vec<Distro>,
}