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