pub fn as_hex<T, S>(bytes: T, serializer: S) -> Result<S::Ok, S::Error>where T: AsRef<[u8]>, S: Serializer,
Seralizes a byte string into hex