yazi_scheduler/plugin/
op.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use yazi_proxy::options::PluginOpt;

#[derive(Debug)]
pub enum PluginOp {
	Entry(PluginOpEntry),
}

impl PluginOp {
	pub fn id(&self) -> usize {
		match self {
			Self::Entry(op) => op.id,
		}
	}
}

#[derive(Debug)]
pub struct PluginOpEntry {
	pub id:  usize,
	pub opt: PluginOpt,
}