Struct devise_core::validator::ValidatorBuild [−][src]
pub struct ValidatorBuild { /* fields omitted */ }
Implementations
pub fn input_validate<F>(self, f: F) -> Self where
F: FnMut(&mut Self, Input<'_>) -> Result<()> + 'static,
pub fn struct_validate<F>(self, f: F) -> Self where
F: FnMut(&mut Self, Struct<'_>) -> Result<()> + 'static,
pub fn enum_validate<F>(self, f: F) -> Self where
F: FnMut(&mut Self, Enum<'_>) -> Result<()> + 'static,
pub fn variant_validate<F>(self, f: F) -> Self where
F: FnMut(&mut Self, Variant<'_>) -> Result<()> + 'static,
Trait Implementations
Returns the “default value” for a type. Read more