// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use serde::de::DeserializeOwned; use tauri::{plugin::PluginApi, AppHandle, Runtime}; use crate::models::*; pub fn init( app: &AppHandle, _api: PluginApi, ) -> crate::Result> { Ok(DeepLink(app.clone())) } /// Access to the deep-link APIs. pub struct DeepLink(AppHandle); impl DeepLink { pub fn ping(&self, payload: PingRequest) -> crate::Result { Ok(PingResponse { value: payload.value, }) } }