valentinegb / openai

An unofficial Rust library for the OpenAI API.
https://crates.io/crates/openai/
MIT License
61 stars 18 forks source link

feat(serialize): Give moderation structs serialize #58

Closed dark0dave closed 10 months ago

dark0dave commented 1 year ago

I have added serialize to the moderation structs as I need to pass them on another api. Its useful to be able to convert back and forth from a string.