Skip to content

Structure

Page

A single section of a larger, traversable result set.
struct Page<T> where T : Sendable

Topics

Initializers

Instance Properties

  • items
    The page’s items. Usually models.
  • metadata
    Metadata containing information about current page, items per page, and total items.

Instance Methods

  • map(_:)
    Maps a page’s items to a different type using the supplied closure.

Default Implementations

Relationships

Conforms To

  • Swift.Copyable
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Escapable
  • Swift.Sendable
  • Swift.SendableMetatype