pub struct JsonRpcAction {
pub method: String,
pub parameters: Vec<String>,
}Expand description
点击后触发操作 有些操作,没有反应【不知道咋回事】 官方API:https://www.flowlauncher.com/docs/#/json-rpc?id=api-list
Fields§
§method: String§parameters: Vec<String>Implementations§
Source§impl JsonRpcAction
impl JsonRpcAction
Sourcepub fn custom<S: Into<String>>(method: S, parameters: Vec<S>) -> Self
pub fn custom<S: Into<String>>(method: S, parameters: Vec<S>) -> Self
自定义动作,需要自己手动处理响应 method: 自定义名称
Sourcepub fn change_query<S: Into<String>>(query: S, requery: bool) -> Self
pub fn change_query<S: Into<String>>(query: S, requery: bool) -> Self
官方API: change flow launcher query 更改流程启动器查询
Sourcepub fn restart_app() -> Self
pub fn restart_app() -> Self
官方API: restart Flow Launcher 重启 Flow Launcher
Sourcepub fn save_app_all_setings() -> Self
pub fn save_app_all_setings() -> Self
官方API:Save everything, all of Flow Launcher and plugins’ data and settings 保存所有内容,包括 Flow Launcher 和插件的所有数据和设置
Sourcepub fn check_for_new_update() -> Self
pub fn check_for_new_update() -> Self
官方API: 检查更新
Sourcepub fn show_msg<S: Into<String>>(title: S, sub_title: S, ico_path: S) -> Self
pub fn show_msg<S: Into<String>>(title: S, sub_title: S, ico_path: S) -> Self
官方API: show messagebox 显示消息框
Sourcepub fn get_translation() -> Self
pub fn get_translation() -> Self
官方API: 获取当前语言的翻译
Sourcepub fn open_setting_dialog() -> Self
pub fn open_setting_dialog() -> Self
官方API: 打开设置对话框
Sourcepub fn get_all_plugins() -> Self
pub fn get_all_plugins() -> Self
官方API: 获取所有插件
Sourcepub fn start_loading_bar() -> Self
pub fn start_loading_bar() -> Self
官方API: 启动加载动画
Sourcepub fn stop_loading_bar() -> Self
pub fn stop_loading_bar() -> Self
官方API: 关闭加载动画
Sourcepub fn reload_all_plugin_data() -> Self
pub fn reload_all_plugin_data() -> Self
官方API: 重新加载插件数据
Trait Implementations§
Source§impl Clone for JsonRpcAction
impl Clone for JsonRpcAction
Source§fn clone(&self) -> JsonRpcAction
fn clone(&self) -> JsonRpcAction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonRpcAction
impl Debug for JsonRpcAction
Auto Trait Implementations§
impl Freeze for JsonRpcAction
impl RefUnwindSafe for JsonRpcAction
impl Send for JsonRpcAction
impl Sync for JsonRpcAction
impl Unpin for JsonRpcAction
impl UnwindSafe for JsonRpcAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more