Trait StringValidator

Source
pub trait StringValidator {
    // Required methods
    fn be_not_empty(self) -> ValidationResult<String>;
    fn be_longer_than(self, length: usize) -> ValidationResult<String>;
    fn be_shorter_than(self, length: usize) -> ValidationResult<String>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl StringValidator for Result<String, ValidationError>

Implementors§