[−][src]Function lightspeed_core::service::validator::contains::validate_contains
pub fn validate_contains<S: Into<String>, T: Contains>(
error_details: &mut ErrorDetails,
field_name: S,
val: T,
needle: &str
)
Validates whether the value contains the needle
The value needs to implement the Contains trait, which is implement on String, str and Hashmap