Adding stubs for type casting to string and boolean.
This commit is contained in:
15
src/bin.rs
15
src/bin.rs
@@ -357,6 +357,21 @@ impl Castable for serde_json::Value {
|
||||
(serde_json::Value::Bool(_), "number") => None,
|
||||
(serde_json::Value::Array(_), "number") => None,
|
||||
(serde_json::Value::Object(_), "number") => None,
|
||||
|
||||
(serde_json::Value::String(text), "string") => todo!(),
|
||||
(serde_json::Value::Number(_), "string") => todo!(),
|
||||
(serde_json::Value::Null, "string") => todo!(),
|
||||
(serde_json::Value::Bool(_), "string") => todo!(),
|
||||
(serde_json::Value::Array(_), "string") => todo!(),
|
||||
(serde_json::Value::Object(_), "string") => todo!(),
|
||||
|
||||
(serde_json::Value::String(text), "boolean") => todo!(),
|
||||
(serde_json::Value::Number(_), "boolean") => todo!(),
|
||||
(serde_json::Value::Null, "boolean") => todo!(),
|
||||
(serde_json::Value::Bool(_), "boolean") => todo!(),
|
||||
(serde_json::Value::Array(_), "boolean") => todo!(),
|
||||
(serde_json::Value::Object(_), "boolean") => todo!(),
|
||||
|
||||
(_, _) => panic!("Unimplemented cast"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user