Struct capnpc::codegen::CodeGenerationCommand[][src]

pub struct CodeGenerationCommand { /* fields omitted */ }
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.

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

Performs the conversion.

Performs the conversion.

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.