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