Struct gild::validators::Contain
[−]
[src]
pub struct Contain { /* fields omitted */ }
Validator that checks whether the given input contains another string
Examples
use gild::ValidationChain; use gild::validators; ValidationChain::new() .add(validators::Contain::new(String::from("world"))) .validate(String::from("Hello, world")) .is_ok();