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

Codegen configuration.

Implementations

Creates a new Config with default settings.

Controls exhaustive matchability of unions and enums.

Non-exhaustive unions and enums have the ability to deserialize and reserialize unknown variants. This enables clients to be more forward-compatible with changes made by newer servers.

Defaults to false.

If enabled, generated objects will use “staged builders”.

Staged builders guarantee that all fields are set at compile time rather than panicing during construction.

Defaults to false.

Controls the use of rustfmt to format generated source code.

Defaults to true.

Sets the name of the binary used to format source code.

Defaults to the value of the RUSTFMT environment variable, or rustfmt if not set.

Sets a prefix that will be stripped from package names.

Defaults to None.

Switches generation to create a full crate.

Defaults to just generating a single module.

Generates Rust source files from a JSON-encoded Conjure IR file.

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

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.