Trait openapi_utils::ResponseExt
source · pub trait ResponseExt {
// Required method
fn json_schema(&self) -> Option<&Schema>;
}
Expand description
Extension methods for Response
Required Methods§
sourcefn json_schema(&self) -> Option<&Schema>
fn json_schema(&self) -> Option<&Schema>
Returns the Schema for this response if it responds with application/json
Implementations on Foreign Types§
source§impl ResponseExt for Response
impl ResponseExt for Response
source§fn json_schema(&self) -> Option<&Schema>
fn json_schema(&self) -> Option<&Schema>
Gets the response for a status code in the operation