16 lines
369 B
Swift
16 lines
369 B
Swift
import Foundation
|
|
|
|
public struct VehicleRegion: Codable, Hashable, Sendable {
|
|
public var name: String
|
|
public var codes: [Int]
|
|
|
|
public init(name: String, codes: [Int]) {
|
|
self.name = name
|
|
self.codes = codes
|
|
}
|
|
|
|
public static func == (lhs: VehicleRegion, rhs: VehicleRegion) -> Bool {
|
|
return lhs.name == rhs.name
|
|
}
|
|
}
|