Current section
Files
Jump to
Current section
Files
lib/ex_nylas/common/email_participant.ex
defmodule ExNylas.EmailParticipant do
@moduledoc """
A struct representing an email participant.
"""
use TypedEctoSchema
import Ecto.Changeset
@primary_key false
typed_embedded_schema do
field(:email, :string)
field(:name, :string)
end
@doc false
def changeset(struct, params \\ %{}) do
cast(struct, params, __MODULE__.__schema__(:fields))
end
end