onesignal_rust_api/models/user_subscription_options.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 UserSubscriptionOptions {
16 #[serde(rename = "retain_previous_owner", skip_serializing_if = "Option::is_none")]
17 pub retain_previous_owner: Option<bool>,
18}
19
20impl UserSubscriptionOptions {
21 pub fn new() -> UserSubscriptionOptions {
22 UserSubscriptionOptions {
23 retain_previous_owner: None,
24 }
25 }
26}
27
28