pub fn response_payload(
resp: &HttpResponse,
success: Option<&WireRef>,
) -> Option<WireRef>Expand description
The wire shape of the body one response carries (#3609), given the model’s
WireContractModel::success: T for a value variant, None for
everything else. A message variant’s body is { "error": String } and a
redirect’s location travels in a header with no body (as bynk openapi
describes them); neither is a ref into types, so they are left None
here and described by response_body instead (#3632). Boundary-implicit
responses are None too — the boundary shapes their bodies, not the handler.