Identifier

public protocol Identifier : Decodable, Encodable

An identifier for an entity with a string representation.

Usage Example:

 // Used in the Id field.
 public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
  • Creates an identifier from a given string value.

    Throws

    An IdentifierError.invalidValue if the given string is not a valid representation.

    Declaration

    Swift

    init(value: String) throws
  • The string representation of the identifier.

    Declaration

    Swift

    var value: String { get }