Skip to main content

is_service_envelope

Function is_service_envelope 

Source
pub(crate) fn is_service_envelope(schema: &ParsedSchema, sd: &StructDef) -> bool
Expand description

true when sd is a service or scoped request/response envelope — a struct with dedicated builder/parse paths (builders.rs, scoped response parsing) that never constructs or narrows the object type. Envelopes keep their legacy named-fields-only interface; every other union-having struct referenced as a data type must carry its union in the emitted type or the generated serializer/parser shapes disagree (#1616).