ValidateCustom

Trait ValidateCustom 

Source
pub trait ValidateCustom {
    // Provided methods
    fn validate_custom(&self) -> Result<(), ErrorTree> { ... }
    fn validate_custom_with(
        &self,
        _ctx: &ValidateContext,
    ) -> Result<(), ErrorTree> { ... }
}
Expand description

ValidateCustom

custom validation behaviour that can be added to any type

Provided Methods§

Implementations on Foreign Types§

Source§

impl ValidateCustom for bool

Source§

impl ValidateCustom for f32

Source§

impl ValidateCustom for f64

Source§

impl ValidateCustom for i8

Source§

impl ValidateCustom for i16

Source§

impl ValidateCustom for i32

Source§

impl ValidateCustom for i64

Source§

impl ValidateCustom for u8

Source§

impl ValidateCustom for u16

Source§

impl ValidateCustom for u32

Source§

impl ValidateCustom for u64

Source§

impl ValidateCustom for String

Source§

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

Source§

impl<T: ValidateCustom> ValidateCustom for Option<T>

Source§

impl<T: ValidateCustom> ValidateCustom for Box<T>

Source§

impl<T: ValidateCustom> ValidateCustom for Vec<T>

Source§

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

Implementors§