Struct tonic_build::manual::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

Service generator builder.

Implementations§

Create a new Builder

Enable or disable gRPC client code generation.

Defaults to enabling client code generation.

Enable or disable gRPC server code generation.

Defaults to enabling server code generation.

Enable or disable generated clients and servers to have built-in tonic transport features.

When the transport feature is disabled this does nothing.

Set the output directory to generate code to.

Defaults to the OUT_DIR environment variable.

Performs code generation for the provided services.

Generated services will be output into the directory specified by out_dir with files named <package_name>.<service_name>.rs.

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.