Skip to main content

onesignal_rust_api/models/
subscription_body.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 * Contact: devrel@onesignal.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10
11
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct SubscriptionBody {
15    #[serde(rename = "subscription", skip_serializing_if = "Option::is_none")]
16    pub subscription: Option<Box<crate::models::Subscription>>,
17}
18
19impl SubscriptionBody {
20    pub fn new() -> SubscriptionBody {
21        SubscriptionBody {
22            subscription: None,
23        }
24    }
25}
26
27