Zodish.Type.Email (zodish v0.2.4)

View Source

Summary

Functions

Creates a new Email type.

Defines what ruleset to use when validating an email address.

Types

ruleset()

@type ruleset() :: :gmail | :html5 | :rfc5322 | :unicode

t()

@type t() :: %Zodish.Type.Email{ruleset: ruleset()}

Functions

new(opts \\ [])

Creates a new Email type.

ruleset(schema, value)

Defines what ruleset to use when validating an email address.

Possible options are:

  • :gmail (default);
  • :html5;
  • :rfc5322; and
  • :unicode.