Skip to main content

parse_path_param

Function parse_path_param 

Source
pub fn parse_path_param<T: FromStr>(value: &str) -> Result<T, T::Err>
Expand description

Parses a path parameter string into a target type.

§Parameters

  • value: The string value of the path parameter.

§Returns

A Result containing the parsed value or the parsing error.