Skip to main content

response_body_enum_name

Function response_body_enum_name 

Source
pub fn response_body_enum_name(op: &RustIdent, variant: &RustIdent) -> RustIdent
Expand description

The generated body-enum name for a response variant that offers several content types (<Op><Variant>Body). The name is built from the operation, not from the response enum, so the response suffix (Response by default) is left out: the enum names a body, not a response, and a document that sets the suffix to Body would otherwise read it twice.