You're looking for tysm
If you want to query OpenAI's Chat Completions API using Structured Outputs (as discussed in this article, use my crate tysm. It automatically generates a JSON schema for you for your type, and automatically deserializes the output for you.