ConfigurationProtocol

public protocol ConfigurationProtocol : OwnedInstanceProtocol

This protocol defines the three main parameters of most configuration structs.

  • Everything has a name.

    Declaration

    Swift

    var name: String { get }
  • token Default implementation

    Most have a token.

    Default Implementation

    The token defaults to the name, but with spaces converted to underscores.

    Declaration

    Swift

    var token: String { get }
  • useCount Default implementation

    Several have a UseCount.

    Default Implementation

    We assume 1

    Declaration

    Swift

    var useCount: Int { get }