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.

👎Deprecated since 1.2.0: no longer used

No longer used.

👎Deprecated since 1.2.0: no longer used

No longer used.

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.