Struct devise::ValidatorBuild
source · pub struct ValidatorBuild { /* private fields */ }
Implementations§
source§impl ValidatorBuild
impl ValidatorBuild
pub fn new() -> ValidatorBuild
pub fn input_validate<F>(self, f: F) -> ValidatorBuildwhere F: FnMut(&mut ValidatorBuild, Input<'_>) -> Result<(), Diagnostic> + 'static,
pub fn struct_validate<F>(self, f: F) -> ValidatorBuildwhere F: FnMut(&mut ValidatorBuild, Derived<'_, ItemStruct, &ItemInput>) -> Result<(), Diagnostic> + 'static,
pub fn enum_validate<F>(self, f: F) -> ValidatorBuildwhere F: FnMut(&mut ValidatorBuild, Derived<'_, ItemEnum, &ItemInput>) -> Result<(), Diagnostic> + 'static,
pub fn variant_validate<F>(self, f: F) -> ValidatorBuildwhere F: FnMut(&mut ValidatorBuild, Derived<'_, Variant, Derived<'_, ItemEnum, &ItemInput>>) -> Result<(), Diagnostic> + 'static,
pub fn fields_validate<F>(self, f: F) -> ValidatorBuildwhere F: FnMut(&mut ValidatorBuild, Fields<'_>) -> Result<(), Diagnostic> + 'static,
pub fn field_validate<F>(self, f: F) -> ValidatorBuildwhere F: FnMut(&mut ValidatorBuild, Field<'_>) -> Result<(), Diagnostic> + '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
source§impl Validator for ValidatorBuild
impl Validator for ValidatorBuild
fn validate_input(&mut self, value: Input<'_>) -> Result<(), Diagnostic>
fn validate_struct( &mut self, value: Derived<'_, ItemStruct, &ItemInput> ) -> Result<(), Diagnostic>
fn validate_enum( &mut self, value: Derived<'_, ItemEnum, &ItemInput> ) -> Result<(), Diagnostic>
fn validate_variant( &mut self, value: Derived<'_, Variant, Derived<'_, ItemEnum, &ItemInput>> ) -> Result<(), Diagnostic>
fn validate_fields(&mut self, value: Fields<'_>) -> Result<(), Diagnostic>
fn validate_field(&mut self, value: Field<'_>) -> Result<(), Diagnostic>
Auto Trait Implementations§
impl !RefUnwindSafe for ValidatorBuild
impl !Send for ValidatorBuild
impl !Sync for ValidatorBuild
impl Unpin for ValidatorBuild
impl !UnwindSafe for ValidatorBuild
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more