Structures
The following structures are available globally.
-
Sometimes, when links are unresolvable (for instance, when a linked entry is not published), the API will return an array of errors, one for each unresolvable link.
See moreDeclaration
Swift
public struct ArrayResponseError : 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
See moreDeclaration
Swift
public struct HomogeneousArrayResponse<ItemType> : HomogeneousArray where ItemType : EndpointAccessible, ItemType : Decodableextension HomogeneousArrayResponse: Decodable -
A list of Contentful entries that have been mapped to types conforming to
See moreEntryDecodableinstances. AHeterogeneousArrayResponserespresents a heterogeneous collection ofEntryDecodablebeing returned, for instance, if hitting the base/entriesendpoint with no additional query parameters. If there is no user-defined type for a particular entry, that entry will not be deserialized at all. It is up to you to introspect the type of each element in the items array to handle the response data properly. See: https://www.contentful.com/developers/docs/references/content-delivery-api/#/introduction/collection-resources-and-paginationDeclaration
Swift
public struct HeterogeneousArrayResponse : Arrayextension HeterogeneousArrayResponse: Decodable -
Declaration
Swift
public struct ClientConfiguration -
A Field describes a single value inside an Entry.
See moreDeclaration
Swift
public struct Field : Decodable -
Error type thrown when ImageOptions are constructed in a way that makes them incompatible with the Contentful Images API
See moreDeclaration
Swift
public struct ImageOptionError : Error, CustomDebugStringConvertible -
A representation of metadata that could come as part of an Entry or Asset response. For now it can only contain links to tags
See moreDeclaration
Swift
public struct Metadata : Codable -
The system fields available on all resources in Contentful. At minimum, when using the
See moreRESTAPI or fetching models using this library, all resources have anidand atypeavailable. When using theGraphQLAPI, theSysobject contains notypefield. Entries and assets provide more information thanDeclaration
Swift
public struct Sysextension Sys: Decodableextension Sys: Encodable
View on GitHub
Structures Reference