use mlua::{ExternalError, FromLua, IntoLua, Lua, Value}; use yazi_shared::path::PathBufDyn; #[derive(Debug, Default)] pub struct HoverOpt { pub urn: Option, } impl From> for HoverOpt { fn from(urn: Option) -> Self { Self { urn } } } impl FromLua for HoverOpt { fn from_lua(_: Value, _: &Lua) -> mlua::Result { Err("unsupported".into_lua_err()) } } impl IntoLua for HoverOpt { fn into_lua(self, _: &Lua) -> mlua::Result { Err("unsupported".into_lua_err()) } }