jss-core 0.2.0

Json Simplified Schema Core Interface
Documentation
1
2
3
4
5
6
7
8
use crate::{JssError, JssErrorKind};
use serde_wasm_bindgen::Error;

impl From<Error> for JssError {
    fn from(e: Error) -> Self {
        JssError { kind: Box::new(JssErrorKind::RuntimeError(e.to_string())), line: 0, column: 0 }
    }
}