pub struct GeneratorConfig {Show 14 fields
pub spec_path: PathBuf,
pub output_dir: PathBuf,
pub module_name: String,
pub enable_sse_client: bool,
pub enable_async_client: bool,
pub enable_specta: bool,
pub type_mappings: BTreeMap<String, String>,
pub streaming_config: Option<StreamingConfig>,
pub nullable_field_overrides: BTreeMap<String, bool>,
pub schema_extensions: Vec<PathBuf>,
pub http_client_config: Option<HttpClientConfig>,
pub retry_config: Option<RetryConfig>,
pub tracing_enabled: bool,
pub auth_config: Option<AuthConfig>,
}Fields§
§spec_path: PathBufPath to OpenAPI specification file
output_dir: PathBufOutput directory for generated code (e.g., “src/gen”)
module_name: StringName of the generated module
enable_sse_client: boolEnable SSE streaming client generation
enable_async_client: boolEnable async HTTP client generation
enable_specta: boolEnable Specta type derives for frontend integration
type_mappings: BTreeMap<String, String>Custom type mappings
streaming_config: Option<StreamingConfig>Optional streaming configuration for SSE client generation
nullable_field_overrides: BTreeMap<String, bool>Fields that should be treated as nullable even if not marked in the spec Format: “SchemaName.fieldName” -> true
schema_extensions: Vec<PathBuf>Additional schema extension files to merge into the main spec These files will be merged additively using simple JSON object merging
http_client_config: Option<HttpClientConfig>HTTP client configuration
retry_config: Option<RetryConfig>Retry configuration for HTTP requests
tracing_enabled: boolEnable request/response tracing
auth_config: Option<AuthConfig>Authentication configuration
Trait Implementations§
Source§impl Clone for GeneratorConfig
impl Clone for GeneratorConfig
Source§fn clone(&self) -> GeneratorConfig
fn clone(&self) -> GeneratorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratorConfig
impl Debug for GeneratorConfig
Auto Trait Implementations§
impl Freeze for GeneratorConfig
impl RefUnwindSafe for GeneratorConfig
impl Send for GeneratorConfig
impl Sync for GeneratorConfig
impl Unpin for GeneratorConfig
impl UnwindSafe for GeneratorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more