yazi/yazi-config/src/vfs/lua.rs
2026-07-13 02:01:37 +08:00

17 lines
311 B
Rust

use std::{ops::Deref, sync::Arc};
use serde::Deserialize;
use yazi_shared::{auth::Auth, event::Cmd};
#[derive(Deserialize)]
pub struct ServiceLua {
#[serde(flatten)]
pub auth: Arc<Auth>,
pub run: Cmd,
}
impl Deref for ServiceLua {
type Target = Auth;
fn deref(&self) -> &Self::Target { &self.auth }
}