QueryOptions
public struct QueryOptions
Options related to the API request.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init ( extras: [String: String]? = nil, customEndpoint: URL? = nil, trackingId: String? = nil )Parameters
extrasA collection of key-value pairs that should be included in the request.
customEndpointThe server to send the request to.
trackingIdAn ID for tracking this client’s requests.
-
A collection of key-value pairs that should be included in the request.
Declaration
Swift
public let extras: [String : String]? -
The server to send the request to.
Declaration
Swift
public let customEndpoint: URL? -
An ID for tracking this client’s requests.
Declaration
Swift
public let trackingId: String?
-
Copies the current QueryOptions with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> QueryOptionsParameters
buildThis closure allows for change of QueryOptions values
Return Value
QueryOptions with the changes set on the closure
-
The
Buildercreates a new instance ofQueryOptionswith modified fields.Declaration
Swift
public struct Builder
QueryOptions Structure Reference