Current section

Files

Jump to
mail_parser lib mail_parser attachment.ex
Raw

lib/mail_parser/attachment.ex

defmodule MailParser.Attachment do
@moduledoc """
A message attachment.
"""
@type t :: %__MODULE__{
name: String.t(),
content_bytes: binary,
content_type: String.t() | nil
}
defstruct [:name, :content_type, :content_bytes]
end