@@ -951,7 +951,7 @@ public func FfiConverterTypeSuggestStore_lower(_ value: SuggestStore) -> UnsafeM
951
951
*/
952
952
public protocol SuggestStoreBuilderProtocol : AnyObject {
953
953
954
- func build( ) throws -> SuggestStore
954
+ func build( rsService : RemoteSettingsService ? ) throws -> SuggestStore
955
955
956
956
/**
957
957
* Deprecated: this is no longer used by the suggest component.
@@ -1037,9 +1037,10 @@ public convenience init() {
1037
1037
1038
1038
1039
1039
1040
- open func build( ) throws -> SuggestStore {
1040
+ open func build( rsService : RemoteSettingsService ? = nil ) throws -> SuggestStore {
1041
1041
return try FfiConverterTypeSuggestStore . lift ( try rustCallWithError ( FfiConverterTypeSuggestApiError . lift) {
1042
- uniffi_suggest_fn_method_suggeststorebuilder_build ( self . uniffiClonePointer ( ) , $0
1042
+ uniffi_suggest_fn_method_suggeststorebuilder_build ( self . uniffiClonePointer ( ) ,
1043
+ FfiConverterOptionTypeRemoteSettingsService . lower ( rsService) , $0
1043
1044
)
1044
1045
} )
1045
1046
}
@@ -3172,6 +3173,30 @@ fileprivate struct FfiConverterOptionTypeRemoteSettingsConfig: FfiConverterRustB
3172
3173
}
3173
3174
}
3174
3175
3176
+ #if swift(>=5.8)
3177
+ @_documentation ( visibility: private)
3178
+ #endif
3179
+ fileprivate struct FfiConverterOptionTypeRemoteSettingsService : FfiConverterRustBuffer {
3180
+ typealias SwiftType = RemoteSettingsService ?
3181
+
3182
+ public static func write( _ value: SwiftType , into buf: inout [ UInt8 ] ) {
3183
+ guard let value = value else {
3184
+ writeInt ( & buf, Int8 ( 0 ) )
3185
+ return
3186
+ }
3187
+ writeInt ( & buf, Int8 ( 1 ) )
3188
+ FfiConverterTypeRemoteSettingsService . write ( value, into: & buf)
3189
+ }
3190
+
3191
+ public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> SwiftType {
3192
+ switch try readInt ( & buf) as Int8 {
3193
+ case 0 : return nil
3194
+ case 1 : return try FfiConverterTypeRemoteSettingsService . read ( from: & buf)
3195
+ default : throw UniffiInternalError . unexpectedOptionalTag
3196
+ }
3197
+ }
3198
+ }
3199
+
3175
3200
#if swift(>=5.8)
3176
3201
@_documentation ( visibility: private)
3177
3202
#endif
@@ -3325,6 +3350,8 @@ fileprivate struct FfiConverterSequenceTypeSuggestionProvider: FfiConverterRustB
3325
3350
3326
3351
3327
3352
3353
+
3354
+
3328
3355
/**
3329
3356
* Determines whether a "raw" sponsored suggestion URL is equivalent to a
3330
3357
* "cooked" URL. The two URLs are equivalent if they are identical except for
@@ -3387,7 +3414,7 @@ private var initializationResult: InitializationResult = {
3387
3414
if ( uniffi_suggest_checksum_method_suggeststore_query_with_metrics ( ) != 14851 ) {
3388
3415
return InitializationResult . apiChecksumMismatch
3389
3416
}
3390
- if ( uniffi_suggest_checksum_method_suggeststorebuilder_build ( ) != 42072 ) {
3417
+ if ( uniffi_suggest_checksum_method_suggeststorebuilder_build ( ) != 26843 ) {
3391
3418
return InitializationResult . apiChecksumMismatch
3392
3419
}
3393
3420
if ( uniffi_suggest_checksum_method_suggeststorebuilder_cache_path ( ) != 55168 ) {
0 commit comments