View Source Shapex.Types.String (shapex v0.3.0)
Summary
Functions
Callback implementation for Shapex.Type.validate/2
.
Types
@type t() :: %Shapex.Types.String{validations: term()}
@type type_or_tuple(t) :: t | {t, error_message :: String.t()}
@type validation_rule() :: {:min_length, type_or_tuple(integer())} | {:max_length, type_or_tuple(integer())} | {:length, type_or_tuple(integer())} | {:eq, type_or_tuple(String.t())} | {:neq, type_or_tuple(String.t())} | {:regex, type_or_tuple(String.t())}
Functions
Callback implementation for Shapex.Type.validate/2
.