pub fn to_value<T>(value: &T) -> Result<Value, Error> where
    T: ?Sized + Serialize
Expand description

Serialize a strongly-typed value as a dynamically-typed Value tree.