Card entity
This module defines a Hunter.Card struct representing a preview card
for links included in a status, embedded in Hunter.Status
Fields
url- the url associated with the cardtitle- the title of the carddescription- the card descriptionimage- the image associated with the card, if anytype-link,photo,video, orrichauthor_name- name of the author/owner of the resourceauthor_url- URL for the author/owner of the resourceprovider_name- name of the resource providerprovider_url- url of the resource providerhtml- HTML required to display the resourcewidth- width in pixelsheight- height in pixelsblurhash- hash computed by the BlurHash algorithm, for generating colorful preview thumbnails when media has not been downloaded yetembed_url- used for photo embeds instead of customhtmlauthors- list ofHunter.Card.Author, fediverse authors of the resourcepublished_at- publication date as a UNIX timestamp, only present on trending linkshistory- usage statistics, only present on trending links
Summary
Types
@type t() :: %Hunter.Card{ author_name: String.t(), author_url: String.t(), authors: [Hunter.Card.Author.t()] | nil, blurhash: String.t() | nil, description: String.t(), embed_url: String.t() | nil, height: non_neg_integer(), history: [map()] | nil, html: String.t(), image: String.t(), provider_name: String.t(), provider_url: String.t(), published_at: String.t() | nil, title: String.t(), type: String.t(), url: String.t(), width: non_neg_integer() }