StrawHat.Mailer v0.4.1 StrawHat.Mailer.Schema.Partial View Source

Represents a Partial Ecto Schema with functionality about the data validation for Partial Template.

Link to this section Summary

Types

Check t/0 type for more information about the keys

t()
  • title: Human readable title.
  • name: The partial identificator and is used for index the rendered content of partial in the template body.
  • html: The html is a Mustache template that will be used when you call the partial on your template.
  • text: The text is a Mustache template that will be used when you call the partial on your template.
  • privacy: Check StrawHat.Mailer.Schema.Privacy.t/0 for more information.
  • owner_id: Check StrawHat.Mailer.owner_id/0 for more information

Functions

Validate the attributes and return a Ecto.Changeset for the current Partial Template

Link to this section Types

Link to this type partial_attrs() View Source
partial_attrs() :: %{name: String.t(), title: String.t(), html: String.t(), text: String.t(), privacy: StrawHat.Mailer.Schema.Privacy.t(), owner_id: String.t()}

Check t/0 type for more information about the keys.

Link to this type t() View Source
t() :: %StrawHat.Mailer.Schema.Partial{__meta__: term(), html: String.t(), id: term(), name: String.t(), owner_id: StrawHat.Mailer.owner_id(), privacy: StrawHat.Mailer.Schema.Privacy.t(), text: String.t(), title: String.t()}
  • title: Human readable title.
  • name: The partial identificator and is used for index the rendered content of partial in the template body.
  • html: The html is a Mustache template that will be used when you call the partial on your template.
  • text: The text is a Mustache template that will be used when you call the partial on your template.
  • privacy: Check StrawHat.Mailer.Schema.Privacy.t/0 for more information.
  • owner_id: Check StrawHat.Mailer.owner_id/0 for more information.

Link to this section Functions

Link to this function changeset(partial, partial_attrs) View Source
changeset(t(), partial_attrs()) :: Ecto.Changeset.t()

Validate the attributes and return a Ecto.Changeset for the current Partial Template.