1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde_json::value::Value as JsonValue;

#[derive(Debug, PartialEq)]
pub enum JSArg {
    Value(serde_json::Value),
    Buffer(Vec<u8>),
    Array(Vec<JSArg>),
}

impl From<JsonValue> for JSArg {
    fn from(v: JsonValue) -> Self {
        JSArg::Value(v)
    }
}