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 : Decodable
extension HomogeneousArrayResponse: Decodable
-
A list of Contentful entries that have been mapped to types conforming to
See moreEntryDecodable
instances. AHeterogeneousArrayResponse
respresents a heterogeneous collection ofEntryDecodable
being returned, for instance, if hitting the base/entries
endpoint 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 : Array
extension 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 moreREST
API or fetching models using this library, all resources have anid
and atype
available. When using theGraphQL
API, theSys
object contains notype
field. Entries and assets provide more information thanDeclaration
Swift
public struct Sys
extension Sys: Decodable
extension Sys: Encodable