Sys
public struct Sys
extension Sys: Decodable
extension Sys: Encodable
The system fields available on all resources in Contentful. At minimum, when using the REST API or fetching models using this library,
all resources have an id and a type available. When using the GraphQL API, the Sys object contains no type field.
Entries and assets provide more information than
-
The unique identifier of the resource..
Declaration
Swift
public let id: String -
The type identifier of the resource.
Declaration
Swift
public let type: String? -
Describes the date the resource was created.
Declaration
Swift
public let createdAt: Date? -
Describes the date the resource was last updated.
Declaration
Swift
public let updatedAt: Date? -
The code for the currently selected locale.
Declaration
Swift
public var locale: LocaleCode? -
The identifier for the content type, if the resource is an
Entry.Declaration
Swift
public var contentTypeId: String? { get } -
The number denoting what the published version of the resource is.
Declaration
Swift
public let revision: Int? -
The link describing the resource type. Not present on
AssetorContentTyperesources.Declaration
Swift
public let contentTypeInfo: Link? -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public enum CodingKeys : String, CodingKey -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
Sys Structure Reference