Crate verify_string

Source

Structs§

LengthVerifier
Range-based string length verification
LengthVerifierBuilder
Builder for LengthVerifier.
RegexVerifier
RegexVerifierBuilder
Builder for RegexVerifier.
VerifyString
WordVerifier
ProfanityVerifier is a struct that contains a list of profanities that are used to check if a string contains any of the profanities.
WordVerifierBuilder
Builder for WordVerifier.

Enums§

LengthVerifierBuilderError
Error type for LengthVerifierBuilder
RegexVerifierBuilderError
Error type for RegexVerifierBuilder
WordVerifierBuilderError
Error type for WordVerifierBuilder

Constants§

INVISIBILITIES

Traits§

Verifier

Functions§

left_trim
Trim the given characters from the left side of the string.
regex_not_start_end_char
Check if a character is present in a string, excluding the beginning and end
regex_some_char
Create a regex that matches any of the characters in the provided list.
regex_start_end_char
Check if a character is present at the beginning or end of a string
right_trim
Trim the given characters from the right side of the string.
trim
Trim the given characters from both sides of the string.