use mlua::{ExternalError, FromLua, IntoLua, Lua, Value}; use yazi_shared::event::CmdCow; #[derive(Clone, Copy, Debug)] pub struct OpenOpt { pub interactive: bool, pub hovered: bool, } impl From for OpenOpt { fn from(c: CmdCow) -> Self { Self { interactive: c.bool("interactive"), hovered: c.bool("hovered") } } } impl FromLua for OpenOpt { fn from_lua(_: Value, _: &Lua) -> mlua::Result { Err("unsupported".into_lua_err()) } } impl IntoLua for OpenOpt { fn into_lua(self, _: &Lua) -> mlua::Result { Err("unsupported".into_lua_err()) } }