EmailEctoType v0.1.4 EmailEctoType.Validator behaviour View Source

Behaviour that any validator for EmailEctoType must follow.

Link to this section Summary

Callbacks

Validates if an email satisfies the validator.

Link to this section Callbacks

Link to this callback

validate(binary)

View Source
validate(binary()) :: {:ok, binary()} | {:error, term()}

Validates if an email satisfies the validator.