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