17 lines
359 B
Swift
17 lines
359 B
Swift
import Foundation
|
|
|
|
public protocol Holdable: Codable {
|
|
static var identifier: String { get set }
|
|
}
|
|
|
|
public protocol Holder: Codable {
|
|
associatedtype HoldableType = Holdable
|
|
|
|
static var codingKeyName: String { get }
|
|
|
|
var name: String { get set }
|
|
var object: HoldableType { get set }
|
|
|
|
init (name: String, object: HoldableType)
|
|
}
|