Skip to main content

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 * 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 User {
15    #[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
16    pub properties: Option<Box<crate::models::PropertiesObject>>,
17    #[serde(rename = "identity", skip_serializing_if = "Option::is_none")]
18    pub identity: Option<::std::collections::HashMap<String, String>>,
19    #[serde(rename = "subscriptions", skip_serializing_if = "Option::is_none")]
20    pub subscriptions: Option<Vec<crate::models::Subscription>>,
21}
22
23impl User {
24    pub fn new() -> User {
25        User {
26            properties: None,
27            identity: None,
28            subscriptions: None,
29        }
30    }
31}
32
33