diff --git a/rmenu-plugin/src/lib.rs b/rmenu-plugin/src/lib.rs index b4e20a5..2a10945 100644 --- a/rmenu-plugin/src/lib.rs +++ b/rmenu-plugin/src/lib.rs @@ -1,5 +1,4 @@ use serde::{Deserialize, Serialize}; -use std::collections::BTreeMap; #[derive(Debug, PartialEq, Serialize, Deserialize)] pub enum Method { @@ -9,6 +8,7 @@ pub enum Method { #[derive(Debug, PartialEq, Serialize, Deserialize)] pub struct Action { + pub name: String, pub exec: String, pub comment: Option, } @@ -16,7 +16,7 @@ pub struct Action { #[derive(Debug, PartialEq, Serialize, Deserialize)] pub struct Entry { pub name: String, - pub actions: BTreeMap, + pub actions: Vec, pub comment: Option, pub icon: Option, }