pub struct MockEmailDomainValidator { /* private fields */ }Expand description
Mock email domain validator for testing.
In production, this would perform actual MX record lookups.
Implementations§
Trait Implementations§
Source§impl AsyncValidator for MockEmailDomainValidator
impl AsyncValidator for MockEmailDomainValidator
Source§fn validate_async<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
value: &'life1 str,
field: &'life2 str,
) -> Pin<Box<dyn Future<Output = AsyncValidatorResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn validate_async<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
value: &'life1 str,
field: &'life2 str,
) -> Pin<Box<dyn Future<Output = AsyncValidatorResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Validate a value asynchronously. Read more
Source§fn provider(&self) -> AsyncValidatorProvider
fn provider(&self) -> AsyncValidatorProvider
Get the provider this validator uses
Auto Trait Implementations§
impl Freeze for MockEmailDomainValidator
impl RefUnwindSafe for MockEmailDomainValidator
impl Send for MockEmailDomainValidator
impl Sync for MockEmailDomainValidator
impl Unpin for MockEmailDomainValidator
impl UnsafeUnpin for MockEmailDomainValidator
impl UnwindSafe for MockEmailDomainValidator
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