PagedContent

public struct PagedContent<Content> : Equatable, Codable where Content : Decodable, Content : Encodable, Content : Equatable

Container format for handling paged FHIR content.

  • Initializes a PagedContent with a given content and an optional next page link.

    Declaration

    Swift

    public init(content: Content, next: URL?)

    Parameters

    content

    Actual content of this page.

    next

    Set if the content of this page is not the last page, nil otherwise.

  • Actual content of a page

    Declaration

    Swift

    public let content: Content
  • Link to the content of the next page

    Declaration

    Swift

    public let next: URL?