Expand description
Module of traits.
Traitsยง
- Collection
Length - For types which should have the a
lenmethod. - Qualify
Domain domain - The
domainvalidator will implement this for its types. - ToEmail
String email - The
emailvalidator will implement this for its types. - ToJson
String json - The
jsonvalidator will implement this for its types. - ToMac
Address String mac_address - The
mac_addressvalidator will implement this for its types. - ToUri
Authority String domainorhostoriporipv4oripv6 - The
domain,host,ip,ipv4,ipv6validators will implement this for their types. - ToUuid
String uuid - The
uuidvalidator will implement this for its types. - Validate
Boolean - Validate and deserialize booleans.
- Validate
Bytes - Validate and deserialize bytes.
- Validate
Char - Validate and deserialize characters.
- Validate
Json Value serde_json - Validate and deserialize
Values. - Validate
Length - Validate the length of collections.
- Validate
Number - Validate and deserialize (floating) numbers.
- Validate
Signed Integer - Validate and deserialize signed integers.
- Validate
String - Validate and deserialize strings.
- Validate
Unsigned Integer - Validate and deserialize unsigned integers.