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. Ignored if protoc parser is used.

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

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

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.