You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tauri-plugins-workspace/plugins/tauri-plugin-revenue-cat/src/commands.rs

14 lines
275 B

use tauri::{AppHandle, command, Runtime};
use crate::models::*;
use crate::Result;
use crate::RevenueCatExt;
#[command]
pub(crate) async fn ping<R: Runtime>(
app: AppHandle<R>,
payload: PingRequest,
) -> Result<PingResponse> {
app.revenue_cat().ping(payload)
}