pub struct TypeScriptConfig {
pub file_naming_convention: NamingConvention,
pub package_scope: Option<String>,
pub package_name: Option<String>,
pub generate_package: bool,
pub ts_target: String,
pub ts_module: TypeScriptModule,
pub ts_lib: Option<Vec<String>>,
pub generate_esm_config: bool,
pub include_build_scripts: bool,
}Expand description
TypeScript-specific configuration (supports CLI args, env vars, and config files)
Fields§
§file_naming_convention: NamingConventionFile naming convention (camelCase, kebab-case, snake_case, PascalCase)
package_scope: Option<String>NPM package scope/prefix (e.g., “@myorg”)
package_name: Option<String>Override package name (defaults to OpenAPI title in kebab-case)
generate_package: boolWhether to generate npm package files
ts_target: StringTypeScript compiler target
ts_module: TypeScriptModuleTypeScript module system (commonjs, esnext, es2020, es2022)
ts_lib: Option<Vec<String>>TypeScript compiler lib array (e.g., “ES2020,DOM” or [“ES2020”, “DOM”] in TOML)
generate_esm_config: boolWhether to generate ESM configuration
include_build_scripts: boolWhether to include build scripts in package.json
Trait Implementations§
Source§impl Args for TypeScriptConfig
impl Args for TypeScriptConfig
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for TypeScriptConfig
impl Clone for TypeScriptConfig
Source§fn clone(&self) -> TypeScriptConfig
fn clone(&self) -> TypeScriptConfig
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 TypeScriptConfig
impl Debug for TypeScriptConfig
Source§impl Default for TypeScriptConfig
impl Default for TypeScriptConfig
Source§impl<'de> Deserialize<'de> for TypeScriptConfig
impl<'de> Deserialize<'de> for TypeScriptConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromArgMatches for TypeScriptConfig
impl FromArgMatches for TypeScriptConfig
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for TypeScriptConfig
impl RefUnwindSafe for TypeScriptConfig
impl Send for TypeScriptConfig
impl Sync for TypeScriptConfig
impl Unpin for TypeScriptConfig
impl UnwindSafe for TypeScriptConfig
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