pub fn serialize<S, B>( bytes: &Option<B>, serializer: S, ) -> Result<S::Ok, S::Error>where S: Serializer, B: Borrow<[u8]> + Serialize,