Mountain/IPC/WindServiceHandlers/UI/KeybindingGetAll.rs
1#![allow(unused_variables)]
2
3//! Wire method: `keybinding:getAll`.
4
5use std::sync::Arc;
6
7use serde_json::{Value, json};
8
9use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
10
11pub async fn Fn(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
12 let All = RunTime.Environment.ApplicationState.Feature.Keybindings.GetAllKeybindings();
13
14 Ok(json!(All))
15}