AshSitemap.Sitemaps.News behaviour (ash_sitemap v1.0.1)

View Source

A struct module representing a news sitemap. This module can also be used to implement manual news sitemaps.

See more https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap

Summary

Types

t()

@type t() :: %AshSitemap.Sitemaps.News{
  access: String.t() | nil,
  genres: String.t() | nil,
  keywords: [String.t()],
  publication_date: String.t(),
  publication_language: String.t(),
  publication_name: String.t(),
  stock_tickers: [String.t()],
  title: String.t()
}

Callbacks

generate(record)

@callback generate(record :: Ash.Resource.t()) :: t()