use serde::{Deserialize, Serialize};
use url::Url;
type DateTime = chrono::DateTime<chrono::Utc>;
// GOAL: output scatterplot of bias from mediafactcheck.com
#[derive(Serialize, Deserialize, Debug, PartialEq, PartialOrd, Hash, Eq)]
enum Factuality {
VeryLow,
Low,
Mixed,
MostlyFactual,
High,
VeryHigh,
}
#[derive(Serialize, Deserialize, Debug, PartialEq, PartialOrd, Hash, Eq)]
struct Bias {
img_url: Url,
}
#[derive(Serialize, Deserialize, Debug, PartialEq, PartialOrd, Hash, Eq)]
struct MediaOutlet {
name: String,
fact: Factuality,
bias: Bias,
url: Url,
page_html: serde_bytes::ByteBuf,
date_sampled: DateTime,
// edited HTML re-jiggered for clarity + rendering
cleaned_summary: serde_bytes::ByteBuf,
}
fn main() {
println!("Hello, world!");
}