1pub type ThreadID = String;
2pub type Board = String;
3
4#[derive(Debug)]
5pub struct Thread {
6 pub id: ThreadID,
7 pub board: Board,
8}
9
10#[derive(Debug)]
11pub struct BoardRequest {
12 pub board: Board,
13 pub thread: ThreadID,
14}
15
16#[derive(Clone, Debug)]
17pub struct File {
18 pub uri: String,
19 pub thumbnail: String,
20 pub name: String,
21 pub name_original: Option<String>,
22}
23
24#[derive(Debug)]
26pub struct Post {
27 pub id: String,
28 pub comment: String,
29 pub timestamp: i64,
30 pub email: String,
31 pub files: Vec<File>,
32 pub op: bool,
33}
34
35#[derive(Debug)]
36pub struct ThreadInfo {
37 pub thread: Thread,
38 pub comment: String,
39 pub posts_count: i32,
40 pub timestamp: i64,
41}
42
43#[derive(Debug)]
44pub struct Catalog {
45 pub board: Board,
46 pub board_name: String,
47 pub comment: String,
48 pub email: String,
49 pub op: bool,
50 pub posts_count: i32,
51 pub files_count: i32,
52 pub files: Vec<File>,
53 pub timestamp: i64,
54}