pub struct GenerateConfig {
pub project_path: String,
pub output_path: String,
pub validation_library: String,
pub verbose: Option<bool>,
pub visualize_deps: Option<bool>,
pub include_private: Option<bool>,
pub type_mappings: Option<HashMap<String, String>>,
pub exclude_patterns: Option<Vec<String>>,
pub include_patterns: Option<Vec<String>>,
}
Fields§
§project_path: String
Path to the Tauri project source directory
output_path: String
Output path for generated TypeScript files
validation_library: String
Validation library to use (‘zod’ or ‘none’)
verbose: Option<bool>
Enable verbose output
visualize_deps: Option<bool>
Generate dependency graph visualization
include_private: Option<bool>
Include private struct fields in generation
type_mappings: Option<HashMap<String, String>>
Custom type mappings
exclude_patterns: Option<Vec<String>>
File patterns to exclude from analysis
include_patterns: Option<Vec<String>>
File patterns to include in analysis (overrides excludes)
Implementations§
Source§impl GenerateConfig
impl GenerateConfig
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
Load configuration from a file
Sourcepub fn from_tauri_config<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
pub fn from_tauri_config<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
Load configuration from Tauri configuration file
Sourcepub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), ConfigError>
pub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), ConfigError>
Save configuration to a file
Sourcepub fn save_to_tauri_config<P: AsRef<Path>>(
&self,
path: P,
) -> Result<(), ConfigError>
pub fn save_to_tauri_config<P: AsRef<Path>>( &self, path: P, ) -> Result<(), ConfigError>
Save configuration to Tauri configuration file
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Validate the configuration
Sourcepub fn merge(&mut self, other: &GenerateConfig)
pub fn merge(&mut self, other: &GenerateConfig)
Merge with another configuration, with other taking precedence
Sourcepub fn is_verbose(&self) -> bool
pub fn is_verbose(&self) -> bool
Get effective verbose setting
Sourcepub fn should_visualize_deps(&self) -> bool
pub fn should_visualize_deps(&self) -> bool
Get effective visualize_deps setting
Sourcepub fn should_include_private(&self) -> bool
pub fn should_include_private(&self) -> bool
Get effective include_private setting
Trait Implementations§
Source§impl Clone for GenerateConfig
impl Clone for GenerateConfig
Source§fn clone(&self) -> GenerateConfig
fn clone(&self) -> GenerateConfig
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 GenerateConfig
impl Debug for GenerateConfig
Source§impl Default for GenerateConfig
impl Default for GenerateConfig
Source§impl<'de> Deserialize<'de> for GenerateConfig
impl<'de> Deserialize<'de> for GenerateConfig
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 From<&TypegenCommands> for GenerateConfig
impl From<&TypegenCommands> for GenerateConfig
Source§fn from(cmd: &TypegenCommands) -> Self
fn from(cmd: &TypegenCommands) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenerateConfig
impl RefUnwindSafe for GenerateConfig
impl Send for GenerateConfig
impl Sync for GenerateConfig
impl Unpin for GenerateConfig
impl UnwindSafe for GenerateConfig
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