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,
pub reverse_conversions: 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)
reverse_conversions: boolGenerate From<BindingType> for CoreType reverse conversions (default: true).
Set to false when the binding layer only returns core types and never accepts them.
Trait Implementations§
Source§impl Clone for GenerateConfig
impl Clone for GenerateConfig
Source§fn clone(&self) -> GenerateConfig
fn clone(&self) -> GenerateConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl JsonSchema for GenerateConfig
impl JsonSchema for GenerateConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more