pub trait ApidocHandlerOps {
// Required method
fn augment(paths: &mut Paths);
}Expand description
Per-handler hook that mutates the Operation generated by
#[utoipa::path] for this handler. Implemented by the method
macro on the same __path_<fn> struct that carries the utoipa
path metadata; the impl iterates every handler argument through
the crate::DocOperationSecurity probe.
Called by the extended crate::routes! macro on the
Paths returned from utoipa_axum::routes!() before merging
into the router. Idempotent — calling Self::augment twice on
the same paths leaves the operation unchanged.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.