Skip to main content

generate_all_of

Function generate_all_of 

Source
pub fn generate_all_of(
    name: &str,
    variants: &[ReferenceOr<Schema>],
    description: Option<&String>,
    inline_types: &mut Vec<TokenStream>,
) -> TokenStream
Expand description

Generate a Rust struct type for an allOf composition.

$ref branches become #[serde(flatten)] fields of the referenced type. Inline object branches contribute their properties directly. Any other inline branch falls back to serde_json::Value (we do not synthesize nested types here — those are handled by the enum path via schema_to_rust_type_ctx).