forked from mirrors/rmenu
feat: update plugin
This commit is contained in:
parent
7b5633b82c
commit
9c03c4bf1e
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::collections::BTreeMap;
|
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub enum Method {
|
pub enum Method {
|
||||||
|
@ -9,6 +8,7 @@ pub enum Method {
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Action {
|
pub struct Action {
|
||||||
|
pub name: String,
|
||||||
pub exec: String,
|
pub exec: String,
|
||||||
pub comment: Option<String>,
|
pub comment: Option<String>,
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ pub struct Action {
|
||||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Entry {
|
pub struct Entry {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub actions: BTreeMap<String, Action>,
|
pub actions: Vec<Action>,
|
||||||
pub comment: Option<String>,
|
pub comment: Option<String>,
|
||||||
pub icon: Option<String>,
|
pub icon: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue