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 {