pub struct GeneratorSection {
pub spec_path: PathBuf,
pub output_dir: PathBuf,
pub module_name: String,
pub schema_extensions: Vec<PathBuf>,
pub builders: BuildersSection,
}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.
builders: BuildersSectionAdditive operation-builder generation policy.
Trait Implementations§
Source§impl Clone for GeneratorSection
impl Clone for GeneratorSection
Source§fn clone(&self) -> GeneratorSection
fn clone(&self) -> GeneratorSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more