From e395fc92896ffe8e5df43295fd53b5656885162f Mon Sep 17 00:00:00 2001 From: candifloss Date: Tue, 17 Sep 2024 16:53:57 +0530 Subject: [PATCH] commit --- src/notification.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/notification.rs b/src/notification.rs index f7b5640..fe600ac 100644 --- a/src/notification.rs +++ b/src/notification.rs @@ -1,4 +1,4 @@ -use std::collections::HashMap; +use std::collections::{btree_map::Range, HashMap}; use zbus::{message::Body, Result}; use zvariant::OwnedValue; @@ -30,6 +30,13 @@ impl Notification { None => "Unknown".to_string(), // This possibly never occurs, or something might be wrong } } + + pub fn actions(&self) -> HashMap { + let mut acts: HashMap; + for i in Range(self.actions.len()) { + + } + } } pub fn to_notif(msg_body: &Body) -> Result {