roux/models/inbox/
mod.rs

1//! # Inbox Responses
2use serde::Deserialize;
3
4use crate::models::response::BasicListing;
5
6/// InboxItem
7#[derive(Debug, Deserialize)]
8pub struct InboxData {
9    /// ID
10    pub id: String,
11    /// Subject
12    pub subject: String,
13    /// Was comment
14    pub was_comment: bool,
15    /// Author
16    pub author: Option<String>,
17    /// Parent ID
18    pub parent_id: Option<String>,
19    /// Sub name
20    pub subreddit_name_prefixed: Option<String>,
21    /// New
22    pub new: bool,
23    /// ???
24    pub r#type: String,
25    /// Body
26    pub body: String,
27    /// Dest
28    pub dest: String,
29    /// Body HTML
30    pub body_html: String,
31    /// Name
32    pub name: String,
33    /// Created
34    pub created: f64,
35    /// Created (UTC)
36    pub created_utc: f64,
37    /// Context
38    pub context: String,
39}
40
41/// Inbox
42pub type Inbox = BasicListing<InboxData>;