Struct gild::validators::NotContain [] [src]

pub struct NotContain { /* fields omitted */ }

Validator that checks whether the given input doesn't contain another string

Examples

use gild::ValidationChain;
use gild::validators;

ValidationChain::new()
   .add(validators::NotContain::new(String::from("Hello")))
   .validate(String::from("Goodbye, world"))
   .is_ok();

Methods

impl NotContain
[src]

Trait Implementations

impl ValidatorCondition for NotContain
[src]

[src]

[src]