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