pub fn serialize<T: Serialize>(t: &T) -> Value
Serialize a type. Panics if the type is returns error during serialization.