use serde::de::DeserializeOwned; use tauri::{plugin::PluginApi, AppHandle, Runtime}; use crate::models::*; pub fn init( app: &AppHandle, _api: PluginApi, ) -> crate::Result> { Ok(IosSharedToken(app.clone())) } /// Access to the ios-shared-token APIs. pub struct IosSharedToken(AppHandle); impl IosSharedToken { pub fn ping(&self, payload: PingRequest) -> crate::Result { Ok(PingResponse { value: payload.value, }) } }