StrawHat.Mailer v1.0.0 StrawHat.Mailer.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
title
: Human readable title.name
: The partial identificator and is used for index the rendered content of partial in the template body.html
: Thehtml
is a Mustache template that will be used when you call the partial on your template.text
: Thetext
is a Mustache template that will be used when you call the partial on your template.privacy
: CheckStrawHat.Mailer.Privacy.t/0
for more information.owner_id
: CheckStrawHat.Mailer.owner_id/0
for more information
Functions
Validates the attributes and return a Ecto.Changeset for the current Partial Template
Link to this section Types
Check t/0
type for more information about the keys.
Link to this type
t()
View Source
t() :: %StrawHat.Mailer.Partial{ __meta__: term(), html: String.t(), id: term(), name: String.t(), owner_id: StrawHat.Mailer.owner_id(), privacy: StrawHat.Mailer.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
: Thehtml
is a Mustache template that will be used when you call the partial on your template.text
: Thetext
is a Mustache template that will be used when you call the partial on your template.privacy
: CheckStrawHat.Mailer.Privacy.t/0
for more information.owner_id
: CheckStrawHat.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()
Validates the attributes and return a Ecto.Changeset for the current Partial Template.