Type Alias AsStr

Source
pub type AsStr<T> = fn(&T) -> &str;
Expand description

Function type for extracting string representation from a matched path type.

Used to convert Axum’s matched path type to a string for span attributes.