use surrealdb::sql::thing; use surrealdb::sql::value; use surrealdb::sql::Thing; use surrealdb::sql::Value; pub trait Parse { fn parse(val: &str) -> T; } impl Parse for Value { fn parse(val: &str) -> Value { value(val).unwrap() } } impl Parse for Thing { fn parse(val: &str) -> Thing { thing(val).unwrap() } }