Protocolvapor 4.114.1Vapor
Extendable
Types conforming to Extendable
can have stored properties added in extension by using the Extend
struct.
protocol Extendable : AnyObject
Browse conforming typesfinal cass MyType: Extendable { ... }
extension MyType {
var foo: Int {
get { return extend.get(\MyType.foo, default: 0) }
set { extend.set(\MyType.foo, to: newValue) }
}
}