1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use super::*;
#[derive(Deserialize, Clone, Debug)]
pub struct Comment {
pub id: Integer,
pub from_id: Integer,
pub date: Integer,
pub text: String,
pub reply_to_user: Option<Integer>,
pub reply_to_comment: Option<Integer>,
pub attachments: Option<Vec<attachment::WallAttachment>>,
pub parents_stack: Option<Vec<Integer>>,
pub thread: Option<Thread>,
pub deleted: Option<Boolean>,
pub post_id: Option<Integer>,
pub owner_id: Option<Integer>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Thread {
pub count: Integer,
pub items: Option<Vec<Comment>>,
pub can_post: Boolean,
pub show_reply_button: Boolean,
pub groups_can_post: Boolean,
}