Skip to content

Commit 9eacf17

Browse files
committed
Implement conversion from Value::Eid to serde String
1 parent 3a9e656 commit 9eacf17

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ impl std::convert::From<f64> for Value {
118118
impl std::convert::From<Value> for serde_json::Value {
119119
fn from(v: Value) -> Self {
120120
match v {
121+
Value::Eid(v) => serde_json::Value::String(v.to_string()),
121122
Value::Aid(v) => serde_json::Value::String(v),
122123
Value::String(v) => serde_json::Value::String(v),
123124
Value::Bool(v) => serde_json::Value::Bool(v),

0 commit comments

Comments
 (0)