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