Current section
Files
Jump to
Current section
Files
lib/smee_view/aspects/displayname.ex
defmodule SmeeView.Aspects.Displayname do
@moduledoc """
Represents and processes <mdui:Displayname> elements in entity metadata as Aspect structs.
The functions in this module are intended to be applied to individual Aspect structs - for extracting and processing
collections of these records please use the matching View module.
"""
@type t :: %__MODULE__{
lang: binary(),
text: binary(),
role: atom()
}
@derive Jason.Encoder
defstruct [
lang: "en",
text: nil,
role: :all
]
use SmeeView.Aspects.AspectCommon, features: [:lang, :text]
#######################################################################################
end