Skip to main content

Module types

Module types 

Source
Expand description

Constrained types: PositiveInt, NonEmptyString, EmailStr, SecretStr, HttpUrl, etc.

Modules§

network
Network types: validated URLs, IP addresses.
numeric
Constrained numeric types.
secret
Secret types with redacted Debug/Display output.
string
Constrained string types.

Structs§

EmailStr
A validated email string.
FiniteFloat
A finite float (no NaN or infinity).
HttpUrl
A validated HTTP/HTTPS URL.
NegativeInt
A negative integer (value < 0).
NonEmptyString
A non-empty string (length >= 1).
NonNegativeInt
A non-negative integer (value >= 0).
NonPositiveInt
A non-positive integer (value <= 0).
PositiveInt
A positive integer (value > 0).
Secret
A generic secret wrapper for any type.
SecretBytes
A secret bytes value that is redacted in Debug and Display output.
SecretStr
A secret string value that is redacted in Debug and Display output.