`match arg[0].to_str(){ "add" => {}, "list" => {} };` The top part that analyses the first argument and engages the required function.
match arg[0].to_str(){ "add" => {}, "list" => {} };The top part that analyses the first argument and engages the required function.