Protocols
The following protocols are available globally.
-
A type that holds the value of an entity with stable identity.
Use the
See moreIdentityResource
protocol to provide a stable notion of identity to a class or value type. For example, you could define a User type with an id property that is stable across your app and your app’s database storage. You could use the id property to identify a particular user even if other data fields change, such as the user’s name.Declaration
Swift
internal protocol IdentityResource : Decodable, Encodable, Identifiable