You need to install Open API Generator:
brew install openapi-generator
Regenerate models:
git clone https://github.com/cube-js/cube
cd cube/rust/cubesql
openapi-generator generate -i ../../packages/cubejs-api-gateway/openspec.yml -g rust -o cubeclient