validator_async/validation/
required.rs

1/// Validates whether the given Option is Some
2pub trait ValidateRequired {
3    fn validate_required(&self) -> bool {
4        self.is_some()
5    }
6
7    fn is_some(&self) -> bool;
8}
9
10impl<T> ValidateRequired for Option<T> {
11    fn is_some(&self) -> bool {
12        self.is_some()
13    }
14}