Struct devise_core::validator::ValidatorBuild
source · pub struct ValidatorBuild { /* private fields */ }
Implementations§
source§impl ValidatorBuild
impl ValidatorBuild
pub fn new() -> Self
pub fn input_validate<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Input<'_>) -> Result<()> + 'static,
pub fn struct_validate<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Struct<'_>) -> Result<()> + 'static,
pub fn enum_validate<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Enum<'_>) -> Result<()> + 'static,
pub fn variant_validate<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Variant<'_>) -> Result<()> + 'static,
pub fn fields_validate<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Fields<'_>) -> Result<()> + 'static,
pub fn field_validate<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Field<'_>) -> Result<()> + 'static,
Trait Implementations§
source§impl Default for ValidatorBuild
impl Default for ValidatorBuild
source§fn default() -> ValidatorBuild
fn default() -> ValidatorBuild
Returns the “default value” for a type. Read more