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

protoc --lang_out=... ... command builder and spawner.

Examples

use protoc::ProtocLangOut;
ProtocLangOut::new()
    .lang("go")
    .include("protos")
    .include("more-protos")
    .out_dir("generated-protos")
    .run()
    .unwrap();

Implementations

Arguments to the protoc found in $PATH

Set LANG part in --LANG_out=...

Set --LANG_out=... param

Set --plugin param. Not needed if plugin is in $PATH

Append a path to -I args

Append multiple paths to -I args

Append a .proto file path to compile

Append multiple .proto file paths to compile

Execute protoc with given args

Trait Implementations

Returns the “default value” for a type. Read more

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.