This commit is contained in:
Candifloss 2024-09-17 16:53:57 +05:30
parent a62a6f8b9a
commit e395fc9289

View File

@ -1,4 +1,4 @@
use std::collections::HashMap; use std::collections::{btree_map::Range, HashMap};
use zbus::{message::Body, Result}; use zbus::{message::Body, Result};
use zvariant::OwnedValue; use zvariant::OwnedValue;
@ -30,6 +30,13 @@ impl Notification {
None => "Unknown".to_string(), // This possibly never occurs, or something might be wrong None => "Unknown".to_string(), // This possibly never occurs, or something might be wrong
} }
} }
pub fn actions(&self) -> HashMap<String, String> {
let mut acts: HashMap<String, String>;
for i in Range(self.actions.len()) {
}
}
} }
pub fn to_notif(msg_body: &Body) -> Result<Notification> { pub fn to_notif(msg_body: &Body) -> Result<Notification> {