Current section
Files
Jump to
Current section
Files
lib/jmap/email/email_body.ex
defmodule Jmap.Email.EmailBody do
@moduledoc """
Represents a part of the email body (text or HTML).
"""
defstruct [
:blob_id,
:charset,
:cid,
:disposition,
:language,
:location,
:name,
:part_id,
:size,
:type,
:contents
]
@type t :: %__MODULE__{
blob_id: String.t(),
charset: String.t() | nil,
cid: String.t() | nil,
disposition: String.t() | nil,
language: String.t() | nil,
location: String.t() | nil,
name: String.t() | nil,
part_id: String.t(),
size: integer(),
type: String.t(),
contents: String.t() | nil
}
end