Skip to main content

onesignal_rust_api/models/
export_subscriptions_request_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 ExportSubscriptionsRequestBody {
15    /// Additional fields that you wish to include. Currently supports location, country, rooted, notification_types, ip, external_user_id, web_auth, and web_p256.
16    #[serde(rename = "extra_fields", skip_serializing_if = "Option::is_none")]
17    pub extra_fields: Option<Vec<String>>,
18    /// Export all devices with a last_active timestamp greater than this time.  Unixtime in seconds.
19    #[serde(rename = "last_active_since", skip_serializing_if = "Option::is_none")]
20    pub last_active_since: Option<String>,
21    /// Export all devices belonging to the segment.
22    #[serde(rename = "segment_name", skip_serializing_if = "Option::is_none")]
23    pub segment_name: Option<String>,
24}
25
26impl ExportSubscriptionsRequestBody {
27    pub fn new() -> ExportSubscriptionsRequestBody {
28        ExportSubscriptionsRequestBody {
29            extra_fields: None,
30            last_active_since: None,
31            segment_name: None,
32        }
33    }
34}
35
36