pub struct BuildConfig {
pub generator_config: GeneratorConfig,
pub generate_mod_file: bool,
pub print_cargo_instructions: bool,
}Expand description
Configuration for build-time code generation.
Fields§
§generator_config: GeneratorConfigGenerator configuration.
generate_mod_file: boolWhether to generate a mod.rs file.
print_cargo_instructions: boolWhether to print build instructions to cargo.
Implementations§
Source§impl BuildConfig
impl BuildConfig
Sourcepub fn with_mod_file(self, enabled: bool) -> Self
pub fn with_mod_file(self, enabled: bool) -> Self
Sets whether to generate a mod.rs file.
Sourcepub fn with_generator_config(self, config: GeneratorConfig) -> Self
pub fn with_generator_config(self, config: GeneratorConfig) -> Self
Sets the generator configuration.
Sourcepub fn with_cargo_instructions(self, enabled: bool) -> Self
pub fn with_cargo_instructions(self, enabled: bool) -> Self
Sets whether to print cargo instructions.
Trait Implementations§
Source§impl Clone for BuildConfig
impl Clone for BuildConfig
Source§fn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
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 BuildConfig
impl Debug for BuildConfig
Auto Trait Implementations§
impl Freeze for BuildConfig
impl RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnwindSafe for BuildConfig
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