mattermost_rust_client/models/
user_thread.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct UserThread {
17 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19 pub id: Option<String>,
20 #[serde(rename = "reply_count", skip_serializing_if = "Option::is_none")]
22 pub reply_count: Option<i32>,
23 #[serde(rename = "last_reply_at", skip_serializing_if = "Option::is_none")]
25 pub last_reply_at: Option<i64>,
26 #[serde(rename = "last_viewed_at", skip_serializing_if = "Option::is_none")]
28 pub last_viewed_at: Option<i64>,
29 #[serde(rename = "participants", skip_serializing_if = "Option::is_none")]
31 pub participants: Option<Vec<crate::models::Post>>,
32 #[serde(rename = "post", skip_serializing_if = "Option::is_none")]
33 pub post: Option<Box<crate::models::Post>>,
34}
35
36impl UserThread {
37 pub fn new() -> UserThread {
39 UserThread {
40 id: None,
41 reply_count: None,
42 last_reply_at: None,
43 last_viewed_at: None,
44 participants: None,
45 post: None,
46 }
47 }
48}
49
50