mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-19 15:21:23 +02:00
[WIP] Encryption for secure values (#183)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use serde::{Serialize, Serializer};
|
||||
use thiserror::Error;
|
||||
use wasm_bindgen::JsValue;
|
||||
|
||||
#[derive(Error, Debug, PartialEq)]
|
||||
pub enum Error {
|
||||
@@ -22,4 +23,10 @@ impl Serialize for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<JsValue> for Error {
|
||||
fn into(self) -> JsValue {
|
||||
serde_wasm_bindgen::to_value(&self).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
Reference in New Issue
Block a user