validator

Trait Validate

Source
pub trait Validate {
    // Required method
    fn validate(&self) -> Result<(), ValidationErrors>;
}
Expand description

This is the original trait that was implemented by deriving Validate. It will still be implemented for struct validations that don’t take custom arguments. The call is being forwarded to the ValidateArgs<'v_a> trait.

Required Methods§

Implementations on Foreign Types§

Source§

impl<K, V: Validate> Validate for &BTreeMap<K, V>

Source§

impl<K, V: Validate, S> Validate for &HashMap<K, V, S>

Source§

impl<T: Validate> Validate for &T

Source§

impl<T: Validate> Validate for [T]

Source§

impl<T: Validate> Validate for BinaryHeap<T>

Source§

impl<T: Validate> Validate for BTreeSet<T>

Source§

impl<T: Validate> Validate for LinkedList<T>

Source§

impl<T: Validate> Validate for VecDeque<T>

Source§

impl<T: Validate> Validate for Vec<T>

Source§

impl<T: Validate> Validate for HashSet<T>

Source§

impl<T: Validate, const N: usize> Validate for [T; N]

Implementors§