SquatchMail.EmailAttachment (SquatchMail v0.1.0)

Copy Markdown View Source

Metadata about an attachment on an email.

Only the metadata (filename, content type, size, disposition) is stored; the attachment content itself is not persisted.

Summary

Functions

Builds a changeset for an attachment.

Types

t()

@type t() :: %SquatchMail.EmailAttachment{
  __meta__: term(),
  content_type: term(),
  disposition: term(),
  email: term(),
  email_id: term(),
  filename: term(),
  id: term(),
  inserted_at: term(),
  size: term(),
  updated_at: term()
}

Functions

changeset(attachment, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Builds a changeset for an attachment.