18 lines
504 B
Swift
18 lines
504 B
Swift
import Foundation
|
|
|
|
public struct Instrument: MusicBrainzSearchable, Identifiable, Hashable, Equatable {
|
|
public static let entityType: MusicBrainzEntity = .instrument
|
|
|
|
public let id: String
|
|
public let name: String
|
|
public let type: String?
|
|
public let description: String?
|
|
public let disambiguation: String?
|
|
public let relations: [Relation]?
|
|
public let score: Int?
|
|
|
|
enum CodingKeys: String, CodingKey, Hashable, Equatable {
|
|
case id, name, type, description, disambiguation, score, relations
|
|
}
|
|
}
|