mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 14:51:03 +00:00
17 lines
311 B
Rust
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 }
|
|
}
|