pub struct NotifyRequest {
pub id: String,
pub title: String,
pub body: String,
pub ongoing: bool,
pub deeplink: Option<String>,
}Expand description
A local notification to post.
Fields§
§id: StringStable identifier: re-posting with the same id replaces the previous notification (used for progress updates).
title: String§body: String§ongoing: boolWhether this is an ongoing/progress notification (best-effort; platforms without ongoing notifications post a normal one).
deeplink: Option<String>Optional deep-link payload delivered to the app when the user taps it.
Implementations§
Trait Implementations§
Source§impl Clone for NotifyRequest
impl Clone for NotifyRequest
Source§fn clone(&self) -> NotifyRequest
fn clone(&self) -> NotifyRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotifyRequest
impl Debug for NotifyRequest
impl Eq for NotifyRequest
Source§impl PartialEq for NotifyRequest
impl PartialEq for NotifyRequest
Source§fn eq(&self, other: &NotifyRequest) -> bool
fn eq(&self, other: &NotifyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotifyRequest
Auto Trait Implementations§
impl Freeze for NotifyRequest
impl RefUnwindSafe for NotifyRequest
impl Send for NotifyRequest
impl Sync for NotifyRequest
impl Unpin for NotifyRequest
impl UnsafeUnpin for NotifyRequest
impl UnwindSafe for NotifyRequest
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