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: 5.2.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    #[serde(rename = "external_id", skip_serializing_if = "Option::is_none")]
19    pub external_id: Option<String>,
20    /// Errors include the identifiers that are invalid, or that there are no subscribers.
21    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
22    pub errors: Option<serde_json::Value>,
23}
24
25impl CreateNotificationSuccessResponse {
26    pub fn new() -> CreateNotificationSuccessResponse {
27        CreateNotificationSuccessResponse {
28            id: None,
29            external_id: None,
30            errors: None,
31        }
32    }
33}
34
35