Page

public struct Page
extension SearchResult.Page: RandomAccessCollection
extension SearchResult.Page: CustomDebugStringConvertible
extension SearchResult.Page: Decodable

Structure that defines a paginated result set.

Note

This structure is used even if the results are returned as an array.
  • The collection of sorted results

    Declaration

    Swift

    public var results: [Result]
  • Undocumented

    Declaration

    Swift

    public var fields: [String : String]
  • Undocumented

    Declaration

    Swift

    public var keys: [String]

Random access collection

  • Declaration

    Swift

    public var startIndex: Int { get }
  • Declaration

    Swift

    public var endIndex: Int { get }
  • Declaration

    Swift

    public func index(after i: Int) -> Int
  • Declaration

    Swift

    public subscript(index: Int) -> Result { get }

Decodable

  • Declaration

    Swift

    public var debugDescription: String { get }
  • Declaration

    Swift

    public init(from decoder: Decoder) throws