Struct onesignal_rust_api::models::basic_notification_all_of_android_background_layout::BasicNotificationAllOfAndroidBackgroundLayout
source · pub struct BasicNotificationAllOfAndroidBackgroundLayout {
pub image: Option<String>,
pub headings_color: Option<String>,
pub contents_color: Option<String>,
}
Expand description
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.
Fields§
§image: Option<String>
Asset file, android resource name, or URL to remote image.
headings_color: Option<String>
Title text color ARGB Hex format. Example(Blue) "FF0000FF".
contents_color: Option<String>
Body text color ARGB Hex format. Example(Red) "FFFF0000".
Implementations§
source§impl BasicNotificationAllOfAndroidBackgroundLayout
impl BasicNotificationAllOfAndroidBackgroundLayout
sourcepub fn new() -> BasicNotificationAllOfAndroidBackgroundLayout
pub fn new() -> 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.
Trait Implementations§
source§impl Clone for BasicNotificationAllOfAndroidBackgroundLayout
impl Clone for BasicNotificationAllOfAndroidBackgroundLayout
source§fn clone(&self) -> BasicNotificationAllOfAndroidBackgroundLayout
fn clone(&self) -> BasicNotificationAllOfAndroidBackgroundLayout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for BasicNotificationAllOfAndroidBackgroundLayout
impl Default for BasicNotificationAllOfAndroidBackgroundLayout
source§fn default() -> BasicNotificationAllOfAndroidBackgroundLayout
fn default() -> BasicNotificationAllOfAndroidBackgroundLayout
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BasicNotificationAllOfAndroidBackgroundLayout
impl<'de> Deserialize<'de> for BasicNotificationAllOfAndroidBackgroundLayout
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<BasicNotificationAllOfAndroidBackgroundLayout> for BasicNotificationAllOfAndroidBackgroundLayout
impl PartialEq<BasicNotificationAllOfAndroidBackgroundLayout> for BasicNotificationAllOfAndroidBackgroundLayout
source§fn eq(&self, other: &BasicNotificationAllOfAndroidBackgroundLayout) -> bool
fn eq(&self, other: &BasicNotificationAllOfAndroidBackgroundLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.