use hashbrown::HashMap;

use serde::Serialize;

#[derive(Serialize, Debug)]
pub struct PageFragmentData {
    pub url: String,
    pub content: String,
    pub word_count: usize,
    pub filters: HashMap<String, Vec<String>>,
    pub meta: HashMap<String, String>,
}

#[derive(Debug)]
pub struct PageFragment {
    pub hash: String,
    pub page_number: usize,
    pub data: PageFragmentData,
}
