pub fn serialize<S, T>( data: &Option<T>, serializer: S, ) -> Result<S::Ok, S::Error>where S: Serializer, T: ToHex,