pub fn validate_contains<T: Contains>(val: T, needle: &str) -> bool
Expand description

Validates whether the value contains the needle The value needs to implement the Contains trait, which is implement on String, str and Hashmap by default.