onesignal_rust_api/models/
create_notification_success_response.rs

1/*
2 * OneSignal
3 *
4 * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5 *
6 * The version of the OpenAPI document: 1.4.1
7 * Contact: devrel@onesignal.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct CreateNotificationSuccessResponse {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    /// Estimated number of subscribers targetted by notification.
19    #[serde(rename = "recipients", skip_serializing_if = "Option::is_none")]
20    pub recipients: Option<i32>,
21    #[serde(rename = "external_id", skip_serializing_if = "Option::is_none")]
22    pub external_id: Option<String>,
23    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
24    pub errors: Option<Box<crate::models::Notification200Errors>>,
25}
26
27impl CreateNotificationSuccessResponse {
28    pub fn new() -> CreateNotificationSuccessResponse {
29        CreateNotificationSuccessResponse {
30            id: None,
31            recipients: None,
32            external_id: None,
33            errors: None,
34        }
35    }
36}
37
38