AshSitemap.Sitemaps.PageMap.DataObject behaviour (ash_sitemap v1.0.1)

View Source

A struct module representing a pagemap dataobject. This module can also be used to implement manual pagemap dataobjects.

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

Summary

Types

t()

@type t() :: %AshSitemap.Sitemaps.PageMap.DataObject{
  attribute: [AshSitemap.Sitemaps.PageMap.DataObject.Attribute.t()],
  id: String.t() | nil,
  type: String.t()
}

Callbacks

generate(record)

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