Skip to main content

onesignal_rust_api/models/
create_api_key_response.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 CreateApiKeyResponse {
15    #[serde(rename = "token_id", skip_serializing_if = "Option::is_none")]
16    pub token_id: Option<String>,
17    #[serde(rename = "formatted_token", skip_serializing_if = "Option::is_none")]
18    pub formatted_token: Option<String>,
19}
20
21impl CreateApiKeyResponse {
22    pub fn new() -> CreateApiKeyResponse {
23        CreateApiKeyResponse {
24            token_id: None,
25            formatted_token: None,
26        }
27    }
28}
29
30