pub struct GenerateConfig {
pub bindings: bool,
pub errors: bool,
pub configs: bool,
pub async_wrappers: bool,
pub type_conversions: bool,
pub package_metadata: bool,
pub public_api: bool,
}Expand description
Controls which generation passes alef runs.
All flags default to true; set to false to skip a pass.
Can be overridden per-language via [generate_overrides.<lang>].
Fields§
§bindings: boolGenerate low-level struct wrappers, From impls, module init (default: true)
errors: boolGenerate error type hierarchies from thiserror enums (default: true)
configs: boolGenerate config builder constructors from Default types (default: true)
async_wrappers: boolGenerate async/sync function pairs with runtime management (default: true)
type_conversions: boolGenerate recursive type marshaling helpers (default: true)
package_metadata: boolGenerate package manifests (pyproject.toml, package.json, etc.) (default: true)
public_api: boolGenerate idiomatic public API wrappers (default: true)
Trait Implementations§
Source§impl Clone for GenerateConfig
impl Clone for GenerateConfig
Source§fn clone(&self) -> GenerateConfig
fn clone(&self) -> GenerateConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenerateConfig
impl Debug for GenerateConfig
Source§impl Default for GenerateConfig
impl Default for GenerateConfig
Source§impl<'de> Deserialize<'de> for GenerateConfig
impl<'de> Deserialize<'de> for GenerateConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GenerateConfig
impl RefUnwindSafe for GenerateConfig
impl Send for GenerateConfig
impl Sync for GenerateConfig
impl Unpin for GenerateConfig
impl UnsafeUnpin for GenerateConfig
impl UnwindSafe for GenerateConfig
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