surrealdb::sql

Function to_value

Source
pub fn to_value<T>(value: T) -> Result<Value, Error>
where T: Serialize,
Expand description

Convert a T into surrealdb::sql::Value which is an enum that can represent any valid SQL data.