Module traits

Source
Expand description

Module of traits.

Traitsยง

CollectionLength
For types which should have the a len method.
QualifyDomaindomain
The domain validator will implement this for its types.
ToEmailStringemail
The email validator will implement this for its types.
ToJsonStringjson
The json validator will implement this for its types.
ToMacAddressStringmac_address
The mac_address validator will implement this for its types.
ToUriAuthorityStringdomain or host or ip or ipv4 or ipv6
The domain, host, ip, ipv4, ipv6 validators will implement this for their types.
ToUuidStringuuid
The uuid validator will implement this for its types.
ValidateBoolean
Validate and deserialize booleans.
ValidateBytes
Validate and deserialize bytes.
ValidateChar
Validate and deserialize characters.
ValidateJsonValueserde_json
Validate and deserialize Values.
ValidateLength
Validate the length of collections.
ValidateNumber
Validate and deserialize (floating) numbers.
ValidateSignedInteger
Validate and deserialize signed integers.
ValidateString
Validate and deserialize strings.
ValidateUnsignedInteger
Validate and deserialize unsigned integers.