onesignal_rust_api/models/
user.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 User {
16    #[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
17    pub properties: Option<Box<crate::models::PropertiesObject>>,
18    #[serde(rename = "identity", skip_serializing_if = "Option::is_none")]
19    pub identity: Option<::std::collections::HashMap<String, serde_json::Value>>,
20    #[serde(rename = "subscriptions", skip_serializing_if = "Option::is_none")]
21    pub subscriptions: Option<Vec<crate::models::SubscriptionObject>>,
22    #[serde(rename = "subscription_options", skip_serializing_if = "Option::is_none")]
23    pub subscription_options: Option<Box<crate::models::UserSubscriptionOptions>>,
24}
25
26impl User {
27    pub fn new() -> User {
28        User {
29            properties: None,
30            identity: None,
31            subscriptions: None,
32            subscription_options: None,
33        }
34    }
35}
36
37