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 implementationMost 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 implementationSeveral have a UseCount.
Default Implementation
We assume 1
Declaration
Swift
var useCount: Int { get }