hooksniff 1.5.1

HookSniff webhooks API client and webhook verification library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// this file is @generated
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)]
pub struct NotificationIn {
    pub notification_type: String,
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub read: Option<bool>,
}

impl NotificationIn {
    pub fn new(notification_type: String, message: String) -> Self {
        Self { notification_type, message, read: None }
    }
}