Struct capnpc::codegen::CodeGenerationCommand
source · pub struct CodeGenerationCommand { /* private fields */ }
Expand description
An invocation of the capnpc-rust code generation plugin.
Implementations
sourceimpl CodeGenerationCommand
impl CodeGenerationCommand
sourcepub fn new() -> CodeGenerationCommand
pub fn new() -> CodeGenerationCommand
Creates a new code generation command with default options.
sourcepub fn output_directory<P>(&mut self, path: P) -> &mut Selfwhere
P: AsRef<Path>,
pub fn output_directory<P>(&mut self, path: P) -> &mut Selfwhere
P: AsRef<Path>,
Sets the output directory.
sourcepub fn default_parent_module(
&mut self,
default_parent_module: Vec<String>
) -> &mut Self
pub fn default_parent_module(
&mut self,
default_parent_module: Vec<String>
) -> &mut Self
Sets the default parent module, indicating the scope in your crate where you will add the generated code.
This option can be overridden by the parentModule
annotation defined in rust.capnp
.
sourcepub fn raw_code_generator_request_path<P>(&mut self, path: P) -> &mut Selfwhere
P: AsRef<Path>,
pub fn raw_code_generator_request_path<P>(&mut self, path: P) -> &mut Selfwhere
P: AsRef<Path>,
Sets the raw code generator request output path.
Auto Trait Implementations
impl RefUnwindSafe for CodeGenerationCommand
impl Send for CodeGenerationCommand
impl Sync for CodeGenerationCommand
impl Unpin for CodeGenerationCommand
impl UnwindSafe for CodeGenerationCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more