Int64

extension Int64: Identifier

Extends Int64 to comply to the Identifier protocol.

Usage Example:

 // The Identifier used in the Id field could be an `Int64`.
 public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
  • Creates an integer identifier from a given string representation.

    Throws

    An IdentifierError.invalidValue if the given string cannot be converted to an integer.

    Declaration

    Swift

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

    Declaration

    Swift

    public var value: String { get }