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 * The version of the OpenAPI document: 5.2.1
7 * Contact: devrel@onesignal.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// 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. 
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct BasicNotificationAllOfAndroidBackgroundLayout {
17    /// Asset file, android resource name, or URL to remote image.
18    #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
19    pub image: Option<String>,
20    /// Title text color ARGB Hex format. Example(Blue) \"FF0000FF\".
21    #[serde(rename = "headings_color", skip_serializing_if = "Option::is_none")]
22    pub headings_color: Option<String>,
23    /// Body text color ARGB Hex format. Example(Red) \"FFFF0000\".
24    #[serde(rename = "contents_color", skip_serializing_if = "Option::is_none")]
25    pub contents_color: Option<String>,
26}
27
28impl BasicNotificationAllOfAndroidBackgroundLayout {
29    /// 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. 
30    pub fn new() -> BasicNotificationAllOfAndroidBackgroundLayout {
31        BasicNotificationAllOfAndroidBackgroundLayout {
32            image: None,
33            headings_color: None,
34            contents_color: None,
35        }
36    }
37}
38
39