Skip to main content

operation_for_method_mut

Function operation_for_method_mut 

Source
pub fn operation_for_method_mut(
    item: &mut PathItem,
    method: HttpMethod,
) -> Option<&mut Operation>
Expand description

Find the operation slot on a PathItem for a given HttpMethod. Used by the method-macro-generated ApidocHandlerOps impl to pick out the operation matching the handler’s declared methods.