Structure
Page
A single section of a larger, traversable result set.
struct Page<T> where T : Sendable
Topics
Initializers
init(items: [T], metadata: PageMetadata)Creates a newPage.
Instance Properties
let items: [T]The page’s items. Usually models.let metadata: PageMetadataMetadata containing information about current page, items per page, and total items.
Instance Methods
func map<U>((T) throws -> U) rethrows -> Page<U>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