pub struct Config { /* fields omitted */ }
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
.
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.
Generates Rust source files from a JSON-encoded Conjure IR file.
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static