pub struct GeneratorConfig {
pub output_dir: PathBuf,
pub language: Language,
pub overwrite: bool,
}Expand description
Configuration for code generation
Fields§
§output_dir: PathBufOutput directory for generated code
language: LanguageLanguage to generate code for
overwrite: boolWhether to overwrite existing files
Implementations§
Source§impl GeneratorConfig
impl GeneratorConfig
Sourcepub fn output_dir<P: Into<PathBuf>>(self, dir: P) -> Self
pub fn output_dir<P: Into<PathBuf>>(self, dir: P) -> Self
Set the output directory
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