Skip to main content

tools_filter

Function tools_filter 

Source
pub fn tools_filter<T>(
    registry: Option<Arc<T>>,
) -> impl Filter<Extract = (impl Reply,), Error = Rejection> + Clone
where T: ToolRegistry + 'static,
Expand description

Creates a warp filter for GET /v1/tools.

Accepts Option<Arc<T>> — when None (no tool source configured), the endpoint returns 404.