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
sourceimpl 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
sourceimpl Clone for BasicNotificationAllOfAndroidBackgroundLayout
impl Clone for BasicNotificationAllOfAndroidBackgroundLayout
sourcefn clone(&self) -> BasicNotificationAllOfAndroidBackgroundLayout
fn clone(&self) -> BasicNotificationAllOfAndroidBackgroundLayout
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for BasicNotificationAllOfAndroidBackgroundLayout
impl Default for BasicNotificationAllOfAndroidBackgroundLayout
sourcefn default() -> BasicNotificationAllOfAndroidBackgroundLayout
fn default() -> BasicNotificationAllOfAndroidBackgroundLayout
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BasicNotificationAllOfAndroidBackgroundLayout
impl<'de> Deserialize<'de> for BasicNotificationAllOfAndroidBackgroundLayout
sourcefn 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
sourceimpl PartialEq<BasicNotificationAllOfAndroidBackgroundLayout> for BasicNotificationAllOfAndroidBackgroundLayout
impl PartialEq<BasicNotificationAllOfAndroidBackgroundLayout> for BasicNotificationAllOfAndroidBackgroundLayout
sourcefn eq(&self, other: &BasicNotificationAllOfAndroidBackgroundLayout) -> bool
fn eq(&self, other: &BasicNotificationAllOfAndroidBackgroundLayout) -> bool
impl StructuralPartialEq for BasicNotificationAllOfAndroidBackgroundLayout
Auto Trait Implementations
impl RefUnwindSafe for BasicNotificationAllOfAndroidBackgroundLayout
impl Send for BasicNotificationAllOfAndroidBackgroundLayout
impl Sync for BasicNotificationAllOfAndroidBackgroundLayout
impl Unpin for BasicNotificationAllOfAndroidBackgroundLayout
impl UnwindSafe for BasicNotificationAllOfAndroidBackgroundLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more