1use serde::Deserialize;
3
4use crate::models::response::BasicListing;
5
6#[derive(Debug, Deserialize)]
8pub struct InboxData {
9 pub id: String,
11 pub subject: String,
13 pub was_comment: bool,
15 pub author: Option<String>,
17 pub parent_id: Option<String>,
19 pub subreddit_name_prefixed: Option<String>,
21 pub new: bool,
23 pub r#type: String,
25 pub body: String,
27 pub dest: String,
29 pub body_html: String,
31 pub name: String,
33 pub created: f64,
35 pub created_utc: f64,
37 pub context: String,
39}
40
41pub type Inbox = BasicListing<InboxData>;