Fast.Ecto.Changeset (Fast v0.11.0)

View Source

Summary

Functions

default_value(changeset, field, value)

downcase(changeset, field)

encode_www_form(changeset, fields)

inflect_address_acronyms(changeset, field)

inflect_title_acronyms(changeset, field)

maybe_set_field_update_time(changeset, changed_field, changed_at_field, opts \\ [])

maybe_trim(changeset, fields)

Trims the string value of the fields if they have a change for the given field key.

Example Usage:

changeset |> maybe_trim([:first_name, :last_name])

normalize_phone_number(changeset, field)

put_hash(changeset, field, opts \\ [])

put_new(changeset, field, value)

require_one_of(changeset, fields, opts \\ [])

slugify(changeset, fields)

titlecase(changeset, field)

validate_contains_alphabetic_character(changeset, field, opts \\ [])

validate_contains_numeric_character(changeset, field, opts \\ [])

validate_contains_special_character(changeset, field, opts \\ [])

validate_is_hex_color_code(changeset, field, opts \\ [])

validate_is_non_disposable_email(changeset, field, options \\ [])

validate_password_rules(changeset, field, opts \\ [])

validate_phone_number(changeset, field, opts \\ [])