Allow js to use pre-stored (de)serialize functions

This commit is contained in:
Tony
2024-10-03 16:46:06 +08:00
parent a3bef84382
commit 718f5dc90d
4 changed files with 65 additions and 8 deletions
+6
View File
@@ -24,6 +24,12 @@ pub enum Error {
/// Store already exists
#[error("Store at \"{0}\" already exists")]
AlreadyExists(PathBuf),
/// Serialize function not found
#[error("Serialize Function \"{0}\" not found")]
SerializeFunctionNotFound(String),
/// Deserialize function not found
#[error("Deserialize Function \"{0}\" not found")]
DeserializeFunctionNotFound(String),
/// Some Tauri API failed
#[error(transparent)]
Tauri(#[from] tauri::Error),