pub struct GeneratorSection {
pub spec_path: PathBuf,
pub output_dir: PathBuf,
pub module_name: String,
pub schema_extensions: Vec<PathBuf>,
pub overlays: Vec<PathBuf>,
pub effective_spec: Option<PathBuf>,
pub bindings_metadata: Option<String>,
pub builders: BuildersSection,
pub derives: DerivesConfig,
}Fields§
§spec_path: PathBufOpenAPI input path or HTTPS URL. Relative filesystem paths are resolved from the directory containing the configuration file.
output_dir: PathBufGenerated-code destination. Relative paths are resolved from the directory containing the configuration file; it need not exist yet.
module_name: StringInformational label, not a directory or module path. The generator writes the same files (mod.rs, types.rs, server/*) regardless of this value. It shows up only in the generated mod.rs header doc comment as a hint and is used by the streaming codegen for naming the SSE client module. You mount the tree at whatever Rust module path you prefer.
schema_extensions: Vec<PathBuf>Schema extension files to merge into the main spec before codegen. Relative paths are resolved from the configuration file’s directory.
overlays: Vec<PathBuf>Ordered OpenAPI Overlay 1.1 files, relative to the configuration file.
effective_spec: Option<PathBuf>Optional JSON effective document artifact, relative to output_dir.
bindings_metadata: Option<String>Optional binding metadata artifact, relative to output_dir.
builders: BuildersSectionAdditive operation-builder generation policy.
derives: DerivesConfigAdditional derives for models and HTTP parameter enums.