IdBase

public protocol IdBase

Used to constrain extensions:

extension Property where ValueType: IdBase { … }

(Swift doesn’t have parameterized extensions, or else we could write where ValueType == Id<T>.)

  • Numerical value of the ID.

    Declaration

    Swift

    var value: EntityId { get }