Conformed the models of the package to the Hashable protocol.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
import Foundation
|
||||
|
||||
/// A model that represents an amiibo.
|
||||
public struct Amiibo: Sendable {
|
||||
public struct Amiibo: Sendable, Hashable {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
extension Amiibo {
|
||||
/// A model that represents a game related to an amiibo.
|
||||
public struct Game: Sendable {
|
||||
public struct Game: Sendable, Hashable {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
extension Amiibo {
|
||||
/// A model that represents a collection of `Switch`, `Switch 2`, `3DS`, and `WiiU` games related to an amiibo.
|
||||
public struct Platform: Sendable {
|
||||
public struct Platform: Sendable, Hashable {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import Foundation
|
||||
|
||||
extension Amiibo {
|
||||
/// A model that represents a collection of release dates related to an amiibo.
|
||||
public struct Release: Sendable {
|
||||
public struct Release: Sendable, Hashable {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
extension Amiibo {
|
||||
/// A model that represents the usage of an amiibo within a certain game.
|
||||
public struct Usage: Sendable {
|
||||
public struct Usage: Sendable, Hashable {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user