Skip to content

Commit 141942a

Browse files
committed
Make Query equatable
1 parent 301f901 commit 141942a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/AlgoliaSearchClient/Models/Search/Query/Auxiliary/AroundPrecision.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct AroundPrecision: Codable {
10+
public struct AroundPrecision: Codable, Equatable {
1111

1212
public let from: Double
1313
public let value: Double

Sources/AlgoliaSearchClient/Models/Search/Query/Auxiliary/AroundRadius.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Foundation
1111
Define the maximum radius for a geo search (in meters).
1212
- This setting only works within the context of a radial (circular) geo search, enabled by aroundLatLngViaIP or aroundLatLng.
1313
*/
14-
public enum AroundRadius: Codable, URLEncodable {
14+
public enum AroundRadius: Codable, Equatable, URLEncodable {
1515

1616
/**
1717
Disables the radius logic, allowing all results to be returned, regardless of distance.

Sources/AlgoliaSearchClient/Models/Search/Query/Auxiliary/FiltersStorage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct FiltersStorage {
10+
public struct FiltersStorage: Equatable {
1111

1212
public var units: [Unit]
1313

Sources/AlgoliaSearchClient/Models/Search/Query/Query.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import Foundation
1010

11-
public struct Query {
11+
public struct Query: Equatable {
1212

1313
// MARK: - Search
1414

0 commit comments

Comments
 (0)