Function to_value

Source
pub fn to_value<T: Serialize + 'static>(value: T) -> Result<Value, Error>