DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceHandlers/NativeHost/
ClipboardReadText.rs1use serde_json::{Value, json};
4
5pub async fn Fn(_Arguments:Vec<Value>) -> Result<Value, String> {
6 match arboard::Clipboard::new() {
7 Ok(mut Cb) => Ok(json!(Cb.get_text().unwrap_or_default())),
8
9 Err(_) => Ok(json!("")),
10 }
11}