#[non_exhaustive]pub enum ValidatorKind {
EmailRfc,
E164Phone,
E164PhoneNational(Region),
Luhn,
IbanMod97,
Ipv4Parse,
Ipv6Parse,
EthEip55,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmailRfc
E164Phone
Available on crate feature
phone-parser only.E164PhoneNational(Region)
Available on crate feature
phone-parser only.Luhn
IbanMod97
Ipv4Parse
Strict decimal dotted-quad IPv4 parser.
Ipv6Parse
RFC 4291 / RFC 5952 IPv6 textual parser.
EthEip55
EIP-55 Ethereum address checksum validator.
Implementations§
Trait Implementations§
Source§impl Clone for ValidatorKind
impl Clone for ValidatorKind
Source§fn clone(&self) -> ValidatorKind
fn clone(&self) -> ValidatorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidatorKind
impl Debug for ValidatorKind
Source§impl PartialEq for ValidatorKind
impl PartialEq for ValidatorKind
Source§fn eq(&self, other: &ValidatorKind) -> bool
fn eq(&self, other: &ValidatorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ValidatorKind
impl Eq for ValidatorKind
impl StructuralPartialEq for ValidatorKind
Auto Trait Implementations§
impl Freeze for ValidatorKind
impl RefUnwindSafe for ValidatorKind
impl Send for ValidatorKind
impl Sync for ValidatorKind
impl Unpin for ValidatorKind
impl UnsafeUnpin for ValidatorKind
impl UnwindSafe for ValidatorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more