Int32
extension Int32: Identifier
Extends Int32
to comply to the Identifier
protocol.
Usage Example:
// The Identifier used in the Id field could be an `Int32`.
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
AnIdentifierError.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 }