ValidateAuto

Trait ValidateAuto 

Source
pub trait ValidateAuto {
    // Provided methods
    fn validate_self(&self) -> Result<(), ErrorTree> { ... }
    fn validate_children(&self) -> Result<(), ErrorTree> { ... }
    fn validate_self_with(
        &self,
        _ctx: &ValidateContext,
    ) -> Result<(), ErrorTree> { ... }
    fn validate_children_with(
        &self,
        _ctx: &ValidateContext,
    ) -> Result<(), ErrorTree> { ... }
}
Expand description

ValidateAuto

derived code that is used to generate the validation rules for a type and its children, via schema validation rules

this shouldn’t be used with primitive types, it’s only really for validation rules put in by macros

Provided Methods§

Implementations on Foreign Types§

Source§

impl ValidateAuto for bool

Source§

impl ValidateAuto for f32

Source§

impl ValidateAuto for f64

Source§

impl ValidateAuto for i8

Source§

impl ValidateAuto for i16

Source§

impl ValidateAuto for i32

Source§

impl ValidateAuto for i64

Source§

impl ValidateAuto for u8

Source§

impl ValidateAuto for u16

Source§

impl ValidateAuto for u32

Source§

impl ValidateAuto for u64

Source§

impl ValidateAuto for String

Source§

impl<K: ValidateAuto, V: ValidateAuto, S> ValidateAuto for HashMap<K, V, S>

Source§

impl<T: ValidateAuto> ValidateAuto for Option<T>

Source§

impl<T: ValidateAuto> ValidateAuto for Box<T>

Source§

impl<T: ValidateAuto> ValidateAuto for Vec<T>

Source§

impl<T: ValidateAuto, S> ValidateAuto for HashSet<T, S>

Implementors§