mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 00:31:04 +00:00
20 lines
283 B
Rust
20 lines
283 B
Rust
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,
|
|
}
|