ModelIdentifierProtocol
public protocol ModelIdentifierProtocol
Defines a ModelIdentifier
requirements.
-
Declaration
Swift
typealias Field = (name: String, value: Persistable)
-
Declaration
Swift
typealias Fields = [Field]
-
Array of
ModelIdentifierProtocol.Field
that make up the model instance identifierDeclaration
Swift
var fields: ModelIdentifierProtocol.Fields { get }
-
stringValue
Default implementationSerialized instance of the identifier. Its value is the concatenation of its fields.
Default Implementation
Declaration
Swift
var stringValue: String { get }
-
keys
Default implementationConvenience accessor to the model identifier fields names
Default Implementation
Declaration
Swift
var keys: [String] { get }
-
values
Default implementationConvenience accessor to the model identifier field values
Default Implementation
Declaration
Swift
var values: [Persistable] { get }
-
predicate
Default implementationDefault Implementation
Declaration
Swift
var predicate: QueryPredicate { get }