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

Configure and invoke .proto parser.

Implementations

Create new default configured parser.

Use pure rust parser.

Use protoc for parsing.

Add an include directory.

Add include directories.

Append a .proto file path to compile

Append multiple .proto file paths to compile

Specify protoc path used for parsing.

This is ignored if pure rust parser is used.

Extra arguments to pass to protoc command (like experimental options).

This is ignored if pure rust parser is used.

Capture stderr and return it in error.

This option applies only to protoc parser. By default protoc stderr is inherited from this process stderr.

Parse .proto files and typecheck them using pure Rust parser of protoc command.

Parse and convert result to FileDescriptorSet.

Trait Implementations

Formats the value using the given formatter. Read more
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

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.