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