Struct with Fn element

I was trying to make "phrase / command" set, so that if the user picked a given phrase the matched command will be expected, then I thought it may be better to use HashMap and RegEx, so I came up with this issue

It ended that I used Vec<(Regex, fn)> instead of struct or HashMap