pub struct ActiveNotification { /* private fields */ }Implementations§
Source§impl ActiveNotification
impl ActiveNotification
Sourcepub fn new(id: i32, title: Option<String>, body: Option<String>) -> Self
pub fn new(id: i32, title: Option<String>, body: Option<String>) -> Self
Constructs an ActiveNotification from the minimal set of fields the
desktop tracking layer can populate. All other fields fall back to
their defaults (the mobile/native paths fill them out fully).
pub const fn id(&self) -> i32
pub fn tag(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
pub fn body(&self) -> Option<&str>
pub fn group(&self) -> Option<&str>
pub const fn group_summary(&self) -> bool
pub const fn data(&self) -> &HashMap<String, String>
pub const fn extra(&self) -> &HashMap<String, Value>
pub fn attachments(&self) -> &[Attachment]
pub fn action_type_id(&self) -> Option<&str>
pub const fn schedule(&self) -> Option<&Schedule>
pub fn sound(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for ActiveNotification
impl Clone for ActiveNotification
Source§fn clone(&self) -> ActiveNotification
fn clone(&self) -> ActiveNotification
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 ActiveNotification
impl Debug for ActiveNotification
Source§impl<'de> Deserialize<'de> for ActiveNotification
impl<'de> Deserialize<'de> for ActiveNotification
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
Auto Trait Implementations§
impl Freeze for ActiveNotification
impl RefUnwindSafe for ActiveNotification
impl Send for ActiveNotification
impl Sync for ActiveNotification
impl Unpin for ActiveNotification
impl UnsafeUnpin for ActiveNotification
impl UnwindSafe for ActiveNotification
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