rstructor 0.4.0

Get structured, validated data out of LLMs as native Rust structs and enums. Derive a type and rstructor generates the JSON Schema, prompts the model, parses the reply, and retries on validation errors — across OpenAI, Anthropic Claude, Google Gemini, and xAI Grok. The Rust answer to Python's Pydantic + Instructor.
Documentation

rstructor

There is very little structured metadata to build this page from currently. You should check the main library docs, readme, or Cargo.toml in case the author documented the features in them.

This version has 17 feature flags, 10 of them enabled by default.

default

anthropic (default)

derive (default)

gemini (default)

grok (default)

logging (default)

openai (default)

rstructor_derive (default)

tracing-futures (default)

tracing-subscriber (default)

async-stream

base64

futures-util

mock

This feature flag does not enable additional features.

reqwest

streaming

tokio

tools