Skip to main content

generate_scoped_builders

Function generate_scoped_builders 

Source
fn generate_scoped_builders(
    out: &mut String,
    service_name: &str,
    schema: &ParsedSchema,
    sc: &ScopedClient,
    ancestors: &[&ScopedClient],
    root_struct: &StructDef,
    root_non_union_fields: &[&FieldDef],
)
Expand description

Generate builder functions for a scoped client’s methods.

ancestors tracks the scoped client chain from outermost to the parent of sc. Each ancestor’s scope fields + discriminant are written into the chain.