onesignal_rust_api/models/
web_button.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: 5.2.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 WebButton {
16    #[serde(rename = "id")]
17    pub id: String,
18    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
19    pub text: Option<String>,
20    #[serde(rename = "icon", skip_serializing_if = "Option::is_none")]
21    pub icon: Option<String>,
22    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
23    pub url: Option<String>,
24}
25
26impl WebButton {
27    pub fn new(id: String) -> WebButton {
28        WebButton {
29            id,
30            text: None,
31            icon: None,
32            url: None,
33        }
34    }
35}
36
37