[−][src]Function aide::openapi::v3::transform::default_response_when
pub fn default_response_when<D, R, P>(
description: D,
value: R,
predicate: P
) -> impl FnOnce(OpenApi) -> OpenApi where
D: ToString,
R: JsonSchema + Serialize,
P: Fn((&String, &PathItem, OperationMethod, &Operation)) -> bool,
Sets the default response for operations that match the predicate.
Panics if the value cannot be JSON serialized.