gitea_rs/models/
notification_subject.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// NotificationSubject : NotificationSubject contains the notification subject (Issue/Pull/Commit)
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct NotificationSubject {
17    #[serde(rename = "html_url", skip_serializing_if = "Option::is_none")]
18    pub html_url: Option<String>,
19    #[serde(rename = "latest_comment_html_url", skip_serializing_if = "Option::is_none")]
20    pub latest_comment_html_url: Option<String>,
21    #[serde(rename = "latest_comment_url", skip_serializing_if = "Option::is_none")]
22    pub latest_comment_url: Option<String>,
23    /// StateType issue state type
24    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
25    pub state: Option<String>,
26    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
27    pub title: Option<String>,
28    /// NotifySubjectType represent type of notification subject
29    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
30    pub r#type: Option<String>,
31    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
32    pub url: Option<String>,
33}
34
35impl NotificationSubject {
36    /// NotificationSubject contains the notification subject (Issue/Pull/Commit)
37    pub fn new() -> NotificationSubject {
38        NotificationSubject {
39            html_url: None,
40            latest_comment_html_url: None,
41            latest_comment_url: None,
42            state: None,
43            title: None,
44            r#type: None,
45            url: None,
46        }
47    }
48}
49
50