use serde::de::DeserializeOwned; use tauri::{AppHandle, Runtime, plugin::PluginApi}; use crate::models::SAuthMuatanMasuk; pub fn init( app: &AppHandle, _api: PluginApi, ) -> crate::Result> { Ok(Auth(app.clone())) } /// Access to the auth APIs. pub struct Auth(AppHandle); impl Auth { pub fn masuk(&self, muatan: SAuthMuatanMasuk) -> crate::Result<()> { return Ok(()); } pub fn keluar(&self) -> crate::Result<()> { return Ok(()); } }