btcpay_client/models/
notification_data.rs

1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct NotificationData {
16    /// The identifier of the notification
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// The html body of the notifications
20    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
21    pub body: Option<String>,
22    /// The link of the notification
23    #[serde(rename = "link", skip_serializing_if = "Option::is_none")]
24    pub link: Option<String>,
25    /// The creation time of the notification
26    #[serde(rename = "createdTime", skip_serializing_if = "Option::is_none")]
27    pub created_time: Option<f32>,
28    /// If the notification has been seen by the user
29    #[serde(rename = "seen", skip_serializing_if = "Option::is_none")]
30    pub seen: Option<bool>,
31}
32
33impl NotificationData {
34    pub fn new() -> NotificationData {
35        NotificationData {
36            id: None,
37            body: None,
38            link: None,
39            created_time: None,
40            seen: None,
41        }
42    }
43}
44
45