pub fn serialize<S, T>(value: &T, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer, T: AsRef<[u8]>,