@@ -500,6 +500,8 @@ public protocol SearchEngineSelectorProtocol : AnyObject {
500
500
*/
501
501
func filterEngineConfiguration( userEnvironment: SearchUserEnvironment ) throws -> RefinedSearchConfig
502
502
503
+ func setConfigOverrides( overrides: String ) throws
504
+
503
505
/**
504
506
* Sets the search configuration from the given string. If the configuration
505
507
* string is unchanged since the last update, the cached configuration is
@@ -608,6 +610,13 @@ open func filterEngineConfiguration(userEnvironment: SearchUserEnvironment)throw
608
610
FfiConverterTypeSearchUserEnvironment . lower ( userEnvironment) , $0
609
611
)
610
612
} )
613
+ }
614
+
615
+ open func setConfigOverrides( overrides: String ) throws { try rustCallWithError ( FfiConverterTypeSearchApiError . lift) {
616
+ uniffi_search_fn_method_searchengineselector_set_config_overrides ( self . uniffiClonePointer ( ) ,
617
+ FfiConverterString . lower ( overrides) , $0
618
+ )
619
+ }
611
620
}
612
621
613
622
/**
@@ -1118,6 +1127,10 @@ public struct SearchEngineDefinition {
1118
1127
* upon (e.g. alphabetical).
1119
1128
*/
1120
1129
public var orderHint : UInt32 ?
1130
+ /**
1131
+ * The url used for reporting clicks.
1132
+ */
1133
+ public var clickUrl : String ?
1121
1134
1122
1135
// Default memberwise initializers are never public by default, so we
1123
1136
// declare one manually.
@@ -1166,7 +1179,10 @@ public struct SearchEngineDefinition {
1166
1179
* The higher the number, the nearer to the front it should be.
1167
1180
* If the number is not specified, other methods of sorting may be relied
1168
1181
* upon (e.g. alphabetical).
1169
- */orderHint: UInt32 ? ) {
1182
+ */orderHint: UInt32 ? ,
1183
+ /**
1184
+ * The url used for reporting clicks.
1185
+ */clickUrl: String ? ) {
1170
1186
self . aliases = aliases
1171
1187
self . charset = charset
1172
1188
self . classification = classification
@@ -1177,6 +1193,7 @@ public struct SearchEngineDefinition {
1177
1193
self . telemetrySuffix = telemetrySuffix
1178
1194
self . urls = urls
1179
1195
self . orderHint = orderHint
1196
+ self . clickUrl = clickUrl
1180
1197
}
1181
1198
}
1182
1199
@@ -1214,6 +1231,9 @@ extension SearchEngineDefinition: Equatable, Hashable {
1214
1231
if lhs. orderHint != rhs. orderHint {
1215
1232
return false
1216
1233
}
1234
+ if lhs. clickUrl != rhs. clickUrl {
1235
+ return false
1236
+ }
1217
1237
return true
1218
1238
}
1219
1239
@@ -1228,6 +1248,7 @@ extension SearchEngineDefinition: Equatable, Hashable {
1228
1248
hasher. combine ( telemetrySuffix)
1229
1249
hasher. combine ( urls)
1230
1250
hasher. combine ( orderHint)
1251
+ hasher. combine ( clickUrl)
1231
1252
}
1232
1253
}
1233
1254
@@ -1248,7 +1269,8 @@ public struct FfiConverterTypeSearchEngineDefinition: FfiConverterRustBuffer {
1248
1269
partnerCode: FfiConverterString . read ( from: & buf) ,
1249
1270
telemetrySuffix: FfiConverterString . read ( from: & buf) ,
1250
1271
urls: FfiConverterTypeSearchEngineUrls . read ( from: & buf) ,
1251
- orderHint: FfiConverterOptionUInt32 . read ( from: & buf)
1272
+ orderHint: FfiConverterOptionUInt32 . read ( from: & buf) ,
1273
+ clickUrl: FfiConverterOptionString . read ( from: & buf)
1252
1274
)
1253
1275
}
1254
1276
@@ -1263,6 +1285,7 @@ public struct FfiConverterTypeSearchEngineDefinition: FfiConverterRustBuffer {
1263
1285
FfiConverterString . write ( value. telemetrySuffix, into: & buf)
1264
1286
FfiConverterTypeSearchEngineUrls . write ( value. urls, into: & buf)
1265
1287
FfiConverterOptionUInt32 . write ( value. orderHint, into: & buf)
1288
+ FfiConverterOptionString . write ( value. clickUrl, into: & buf)
1266
1289
}
1267
1290
}
1268
1291
@@ -2484,6 +2507,9 @@ private var initializationResult: InitializationResult = {
2484
2507
if ( uniffi_search_checksum_method_searchengineselector_filter_engine_configuration ( ) != 58182 ) {
2485
2508
return InitializationResult . apiChecksumMismatch
2486
2509
}
2510
+ if ( uniffi_search_checksum_method_searchengineselector_set_config_overrides ( ) != 22323 ) {
2511
+ return InitializationResult . apiChecksumMismatch
2512
+ }
2487
2513
if ( uniffi_search_checksum_method_searchengineselector_set_search_config ( ) != 35713 ) {
2488
2514
return InitializationResult . apiChecksumMismatch
2489
2515
}
0 commit comments