onesignal_rust_api/models/
begin_live_activity_request.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 BeginLiveActivityRequest {
16    #[serde(rename = "push_token")]
17    pub push_token: String,
18    #[serde(rename = "subscription_id")]
19    pub subscription_id: String,
20}
21
22impl BeginLiveActivityRequest {
23    pub fn new(push_token: String, subscription_id: String) -> BeginLiveActivityRequest {
24        BeginLiveActivityRequest {
25            push_token,
26            subscription_id,
27        }
28    }
29}
30
31