onesignal_rust_api/models/basic_notification_all_of_android_background_layout.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/// BasicNotificationAllOfAndroidBackgroundLayout : Channel: Push Notifications Platform: Android Allowing setting a background image for the notification. This is a JSON object containing the following keys. See our Background Image documentation for image sizes.
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct BasicNotificationAllOfAndroidBackgroundLayout {
16 /// Asset file, android resource name, or URL to remote image.
17 #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
18 pub image: Option<String>,
19 /// Title text color ARGB Hex format. Example(Blue) \"FF0000FF\".
20 #[serde(rename = "headings_color", skip_serializing_if = "Option::is_none")]
21 pub headings_color: Option<String>,
22 /// Body text color ARGB Hex format. Example(Red) \"FFFF0000\".
23 #[serde(rename = "contents_color", skip_serializing_if = "Option::is_none")]
24 pub contents_color: Option<String>,
25}
26
27impl BasicNotificationAllOfAndroidBackgroundLayout {
28 /// Channel: Push Notifications Platform: Android Allowing setting a background image for the notification. This is a JSON object containing the following keys. See our Background Image documentation for image sizes.
29 pub fn new() -> BasicNotificationAllOfAndroidBackgroundLayout {
30 BasicNotificationAllOfAndroidBackgroundLayout {
31 image: None,
32 headings_color: None,
33 contents_color: None,
34 }
35 }
36}
37
38