Trait validator::ValidateRequired

source ·
pub trait ValidateRequired {
    // Required method
    fn is_some(&self) -> bool;

    // Provided method
    fn validate_required(&self) -> bool { ... }
}
Expand description

Validates whether the given Option is Some

Required Methods§

source

fn is_some(&self) -> bool

Provided Methods§

Implementations on Foreign Types§

source§

impl<T> ValidateRequired for Option<T>

source§

fn is_some(&self) -> bool

Implementors§