Literature.Pagination.Page (literature v0.4.7)

Struct for pages metadata

Summary

Types

pagination_params()

@type pagination_params() :: %{page: integer(), page_size: integer()}

t()

@type t() :: %Literature.Pagination.Page{
  entries: list(),
  page_number: pos_integer(),
  page_size: integer(),
  total_entries: integer(),
  total_pages: pos_integer()
}

t(entry)

@type t(entry) :: %Literature.Pagination.Page{
  entries: [entry],
  page_number: pos_integer(),
  page_size: integer(),
  total_entries: integer(),
  total_pages: pos_integer()
}