Structure
Page
A single section of a larger, traversable result set.
struct Page<T> where T : Sendable
Topics
Initializers
init(items:metadata:)Creates a newPage.
Instance Properties
itemsThe page’s items. Usually models.metadataMetadata 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.CopyableSwift.DecodableSwift.EncodableSwift.EscapableSwift.SendableSwift.SendableMetatype