gitea_client/models/
notification_thread.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NotificationThread : NotificationThread expose Notification on API
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NotificationThread {
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i64>,
19    #[serde(rename = "pinned", skip_serializing_if = "Option::is_none")]
20    pub pinned: Option<bool>,
21    #[serde(rename = "repository", skip_serializing_if = "Option::is_none")]
22    pub repository: Option<Box<models::Repository>>,
23    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
24    pub subject: Option<Box<models::NotificationSubject>>,
25    #[serde(rename = "unread", skip_serializing_if = "Option::is_none")]
26    pub unread: Option<bool>,
27    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
28    pub updated_at: Option<String>,
29    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
30    pub url: Option<String>,
31}
32
33impl NotificationThread {
34    /// NotificationThread expose Notification on API
35    pub fn new() -> NotificationThread {
36        NotificationThread {
37            id: None,
38            pinned: None,
39            repository: None,
40            subject: None,
41            unread: None,
42            updated_at: None,
43            url: None,
44        }
45    }
46}
47