Function serenity::json::to_value

source ยท
pub fn to_value<T>(value: T) -> Result<Value>
where T: Serialize,
Expand description

Convert a T into a Value which is an enum that can represent any valid JSON data.