pub fn validate_contains<T: Contains>(
    haystack: T,
    needle: T::Needle<'_>,
    not: bool
) -> bool
Expand description

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