pub enum StringValidation {
Show 43 variants
Email,
Url,
UrlStrict,
Uri,
Uuid,
UuidV1,
UuidV4,
UuidV7,
Ip,
Slug,
Color,
Currency,
CountryCode,
Locale,
Cron,
Regex,
StartsWith,
EndsWith,
Ipv4,
Ipv6,
Cidr,
Mac,
Hex,
CreditCard,
Phone,
PhoneE164,
Semver,
SemverFull,
Jwt,
Ascii,
Alpha,
Alphanumeric,
Lowercase,
Uppercase,
Base64,
IsoDate,
IsoDatetime,
IsoTime,
Hostname,
Cuid2,
Ulid,
Nanoid,
Emoji,
}Expand description
Type of string validation that failed.
Variants§
Url
UrlStrict
Uri
Uuid
UuidV1
UuidV4
UuidV7
Ip
Slug
Color
Currency
CountryCode
Locale
Cron
Regex
StartsWith
EndsWith
Ipv4
Ipv6
Cidr
Mac
Hex
CreditCard
Phone
PhoneE164
Semver
SemverFull
Jwt
Ascii
Alpha
Alphanumeric
Lowercase
Uppercase
Base64
IsoDate
IsoDatetime
IsoTime
Hostname
Cuid2
Ulid
Nanoid
Emoji
Trait Implementations§
Source§impl Clone for StringValidation
impl Clone for StringValidation
Source§fn clone(&self) -> StringValidation
fn clone(&self) -> StringValidation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StringValidation
impl RefUnwindSafe for StringValidation
impl Send for StringValidation
impl Sync for StringValidation
impl Unpin for StringValidation
impl UnsafeUnpin for StringValidation
impl UnwindSafe for StringValidation
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