Module validators::traits
source · Expand description
Module of traits.
Traits
- For types which should have the a
len
method. - QualifyDomain
domain
Thedomain
validator will implement this for its types. - ToEmailString
email
Theemail
validator will implement this for its types. - ToJsonString
json
Thejson
validator will implement this for its types. - ToMacAddressString
mac_address
Themac_address
validator will implement this for its types. - ToUriAuthorityString
domain
orhost
orip
oripv4
oripv6
Thedomain
,host
,ip
,ipv4
,ipv6
validators will implement this for their types. - ToUuidString
uuid
Theuuid
validator will implement this for its types. - Validate and deserialize booleans.
- Validate and deserialize bytes.
- Validate and deserialize characters.
- ValidateJsonValue
serde_json
Validate and deserializeValue
s. - Validate the length of collections.
- Validate and deserialize (floating) numbers.
- Validate and deserialize signed integers.
- Validate and deserialize strings.
- Validate and deserialize unsigned integers.