Skip to main content

tool_name_from_str

Function tool_name_from_str 

Source
pub fn tool_name_from_str<N: ToolName>(s: &str) -> Result<N, Error>
Expand description

Parse a tool name from string via serde.

§Errors

Returns error if the string doesn’t match a valid tool name.