use serde::de::Deserializer;
use crate::post::{
post_pre::PostPre,
Post,
};
mod thread_pre;
#[derive(Clone, Debug)]
pub struct ThreadInfo {
pub op_post: Post,
pub last_replies: Vec<Post>,
pub sticky: bool,
pub closed: bool,
pub subject: Option<String>,
pub posts_omitted: i32,
pub images_omitted: i32,
pub n_replies: i32,
pub n_images: i32,
pub bump_limit_reached: bool,
pub image_limit_reached: bool,
pub last_modified: u64,
pub semantic_url: String,
}
impl ThreadInfo {
pub fn thread_no(&self) -> u32 {
self.op_post.no
}
}
#[derive(Debug, Clone)]
pub struct Thread {
pub no: u32,
pub sticky: bool,
pub closed: bool,
pub subject: Option<String>,
pub unique_posters: i32,
pub posts: Vec<Post>,
}