Struct conjure_codegen::Config
source · pub struct Config { /* private fields */ }
Expand description
Codegen configuration.
Implementations§
source§impl Config
impl Config
sourcepub fn exhaustive(&mut self, exhaustive: bool) -> &mut Config
pub fn exhaustive(&mut self, exhaustive: bool) -> &mut Config
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
.
sourcepub fn run_rustfmt(&mut self, _run_rustfmt: bool) -> &mut Config
👎Deprecated since 1.2.0: no longer used
pub fn run_rustfmt(&mut self, _run_rustfmt: bool) -> &mut Config
No longer used.
sourcepub fn rustfmt<T>(&mut self, _rustfmt: T) -> &mut Config
👎Deprecated since 1.2.0: no longer used
pub fn rustfmt<T>(&mut self, _rustfmt: T) -> &mut Config
No longer used.
sourcepub fn strip_prefix<T>(&mut self, strip_prefix: T) -> &mut Config
pub fn strip_prefix<T>(&mut self, strip_prefix: T) -> &mut Config
Sets a prefix that will be stripped from package names.
Defaults to None
.
sourcepub fn version<T>(&mut self, version: T) -> &mut Config
pub fn version<T>(&mut self, version: T) -> &mut Config
Sets the version included in endpoint metadata for generated client bindings.
Defaults to the version passed to Self::build_crate
, or None
otherwise.
sourcepub fn build_crate(&mut self, name: &str, version: &str) -> &mut Config
pub fn build_crate(&mut self, name: &str, version: &str) -> &mut Config
Switches generation to create a full crate.
Defaults to just generating a single module.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more