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
-
A type that holds the value of library attributes.
Use the
See moreLibraryAttributes
protocol to provide a library attributes to a class or value type. For example, you could define a Show type with a library status property that is stable across your app and your app’s database storage. You could use the library status property to identify a particular show’s library status even if other data fields change, such as the show’s title.Declaration
Swift
public protocol LibraryAttributes : Decodable, Encodable