pub struct CodeGenerationCommand { /* private fields */ }
Expand description

An invocation of the capnpc-rust code generation plugin.

Implementations

Creates a new code generation command with default options.

Sets the output directory.

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.

Sets the raw code generator request output path.

Generates Rust code according to a schema_capnp::code_generator_request read from inp.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.