HomogeneousArrayResponse
public struct HomogeneousArrayResponse<ItemType> : HomogeneousArray where ItemType : EndpointAccessible, ItemType : Decodable
extension HomogeneousArrayResponse: Decodable
A list of resources in Contentful This is the result type for any request of a collection of resources. See: https://www.contentful.com/developers/docs/references/content-delivery-api/#/introduction/collection-resources-and-pagination
-
The resources which are part of the array response.
Declaration
Swift
public let items: [ItemType]
-
The maximum number of resources originally requested.
Declaration
Swift
public let limit: UInt
-
The number of elements skipped when performing the request.
Declaration
Swift
public let skip: UInt
-
The total number of resources which matched the original request.
Declaration
Swift
public let total: UInt
-
An array of errors, or partial errors, which describe links which were returned in the response that cannot be resolved.
Declaration
Swift
public let errors: [ArrayResponseError]?
-
Access to included assets
Declaration
Swift
public var includedAssets: [Asset]? { get }
-
Access to included entries
Declaration
Swift
public var includedEntries: [Entry]? { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws