onesignal_rust_api/models/
create_api_key_response.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct CreateApiKeyResponse {
16 #[serde(rename = "token_id", skip_serializing_if = "Option::is_none")]
17 pub token_id: Option<String>,
18 #[serde(rename = "formatted_token", skip_serializing_if = "Option::is_none")]
19 pub formatted_token: Option<String>,
20}
21
22impl CreateApiKeyResponse {
23 pub fn new() -> CreateApiKeyResponse {
24 CreateApiKeyResponse {
25 token_id: None,
26 formatted_token: None,
27 }
28 }
29}
30
31