FlatResource

public protocol FlatResource

A protocol signifying that a resource’s Sys property are accessible for lookup from the top level of the instance.

  • id

    The unique identifier of the Resource.

    Declaration

    Swift

    var id: String { get }
  • The date representing the last time the Contentful resource was updated.

    Declaration

    Swift

    var updatedAt: Date? { get }
  • The date that the Contentful resource was first created.

    Declaration

    Swift

    var createdAt: Date? { get }
  • The code of the locale the current resource contains content for.

    Declaration

    Swift

    var localeCode: String? { get }

Available where Self: Resource

  • type Extension method

    Undocumented

    Declaration

    Swift

    var type: String? { get }