pub struct Notification {
pub title: String,
pub body: Option<String>,
pub click_action: String,
pub badge: Option<String>,
pub body_loc_args: Option<Vec<String>>,
pub body_loc_key: Option<String>,
pub color: Option<String>,
pub icon: Option<String>,
pub sound: Option<String>,
pub tag: Option<String>,
pub title_loc_args: Option<Vec<String>>,
pub title_loc_key: Option<String>,
}
Fields§
§title: String
§body: Option<String>
§click_action: String
§badge: Option<String>
§body_loc_args: Option<Vec<String>>
§body_loc_key: Option<String>
§color: Option<String>
§icon: Option<String>
§sound: Option<String>
§tag: Option<String>
§title_loc_args: Option<Vec<String>>
§title_loc_key: Option<String>
Implementations§
Source§impl Notification
impl Notification
Sourcepub fn new<'fn_lifetime>() -> NotificationBuilder<'fn_lifetime, (), (), (), (), (), (), (), (), (), (), (), (), (), ()>
pub fn new<'fn_lifetime>() -> NotificationBuilder<'fn_lifetime, (), (), (), (), (), (), (), (), (), (), (), (), (), ()>
Creating a builder.
§Required Fields
§title
- Type:
Into<String>
§Optional Fields
§badge
- Type:
Into<Option < String >>
- Default:
None
§body
- Type:
Into<Option < String >>
- Default:
None
§body_loc_args
- Type:
Into<Option < Vec < String > >>
- Default:
None
§body_loc_key
- Type:
Into<Option < String >>
- Default:
None
§click_action
- Type:
Into<String>
- Default:
flutter_notification_click()
§color
- Type:
Into<Option < String >>
- Default:
None
§icon
- Type:
Into<Option < String >>
- Default:
None
§sound
- Type:
Into<Option < String >>
- Default:
None
§tag
- Type:
Into<Option < String >>
- Default:
None
§title_loc_args
- Type:
Into<Option < Vec < String > >>
- Default:
None
§title_loc_key
- Type:
Into<Option < String >>
- Default:
None
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Notification
impl Debug for Notification
Source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
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 From<Notification> for Notification
impl From<Notification> for Notification
Source§fn from(notification: Notification) -> Self
fn from(notification: Notification) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Notification
impl PartialEq for Notification
Source§impl Serialize for Notification
impl Serialize for Notification
impl Eq for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.