mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-29 19:50:42 +02:00
Allow js to use pre-stored (de)serialize functions
This commit is contained in:
@@ -19,9 +19,9 @@ use tokio::{
|
||||
time::sleep,
|
||||
};
|
||||
|
||||
type SerializeFn =
|
||||
pub type SerializeFn =
|
||||
fn(&HashMap<String, JsonValue>) -> Result<Vec<u8>, Box<dyn std::error::Error + Send + Sync>>;
|
||||
pub(crate) type DeserializeFn =
|
||||
pub type DeserializeFn =
|
||||
fn(&[u8]) -> Result<HashMap<String, JsonValue>, Box<dyn std::error::Error + Send + Sync>>;
|
||||
|
||||
fn default_serialize(
|
||||
|
||||
Reference in New Issue
Block a user