gitea_client/models/notification_count.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/// NotificationCount : NotificationCount number of unread notifications
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NotificationCount {
17 #[serde(rename = "new", skip_serializing_if = "Option::is_none")]
18 pub new: Option<i64>,
19}
20
21impl NotificationCount {
22 /// NotificationCount number of unread notifications
23 pub fn new() -> NotificationCount {
24 NotificationCount {
25 new: None,
26 }
27 }
28}
29