pub fn serialize_hex<T: Encodable + ?Sized>(data: &T) -> String
Encodes an object into a hex-encoded string.