@@ -887,14 +887,12 @@ public func FfiConverterTypeSuggestGlobalConfig_lower(_ value: SuggestGlobalConf
887
887
888
888
889
889
public struct SuggestIngestionConstraints {
890
- public var maxSuggestions : UInt64 ?
891
890
public var providers : [ SuggestionProvider ] ?
892
891
public var emptyOnly : Bool
893
892
894
893
// Default memberwise initializers are never public by default, so we
895
894
// declare one manually.
896
- public init ( maxSuggestions: UInt64 ? = nil , providers: [ SuggestionProvider ] ? = nil , emptyOnly: Bool = false ) {
897
- self . maxSuggestions = maxSuggestions
895
+ public init ( providers: [ SuggestionProvider ] ? = nil , emptyOnly: Bool = false ) {
898
896
self . providers = providers
899
897
self . emptyOnly = emptyOnly
900
898
}
@@ -904,9 +902,6 @@ public struct SuggestIngestionConstraints {
904
902
905
903
extension SuggestIngestionConstraints : Equatable , Hashable {
906
904
public static func == ( lhs: SuggestIngestionConstraints , rhs: SuggestIngestionConstraints ) -> Bool {
907
- if lhs. maxSuggestions != rhs. maxSuggestions {
908
- return false
909
- }
910
905
if lhs. providers != rhs. providers {
911
906
return false
912
907
}
@@ -917,7 +912,6 @@ extension SuggestIngestionConstraints: Equatable, Hashable {
917
912
}
918
913
919
914
public func hash( into hasher: inout Hasher ) {
920
- hasher. combine ( maxSuggestions)
921
915
hasher. combine ( providers)
922
916
hasher. combine ( emptyOnly)
923
917
}
@@ -928,14 +922,12 @@ public struct FfiConverterTypeSuggestIngestionConstraints: FfiConverterRustBuffe
928
922
public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> SuggestIngestionConstraints {
929
923
return
930
924
try SuggestIngestionConstraints (
931
- maxSuggestions: FfiConverterOptionUInt64 . read ( from: & buf) ,
932
925
providers: FfiConverterOptionSequenceTypeSuggestionProvider . read ( from: & buf) ,
933
926
emptyOnly: FfiConverterBool . read ( from: & buf)
934
927
)
935
928
}
936
929
937
930
public static func write( _ value: SuggestIngestionConstraints , into buf: inout [ UInt8 ] ) {
938
- FfiConverterOptionUInt64 . write ( value. maxSuggestions, into: & buf)
939
931
FfiConverterOptionSequenceTypeSuggestionProvider . write ( value. providers, into: & buf)
940
932
FfiConverterBool . write ( value. emptyOnly, into: & buf)
941
933
}
@@ -1492,27 +1484,6 @@ fileprivate struct FfiConverterOptionInt32: FfiConverterRustBuffer {
1492
1484
}
1493
1485
}
1494
1486
1495
- fileprivate struct FfiConverterOptionUInt64 : FfiConverterRustBuffer {
1496
- typealias SwiftType = UInt64 ?
1497
-
1498
- public static func write( _ value: SwiftType , into buf: inout [ UInt8 ] ) {
1499
- guard let value = value else {
1500
- writeInt ( & buf, Int8 ( 0 ) )
1501
- return
1502
- }
1503
- writeInt ( & buf, Int8 ( 1 ) )
1504
- FfiConverterUInt64 . write ( value, into: & buf)
1505
- }
1506
-
1507
- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> SwiftType {
1508
- switch try readInt ( & buf) as Int8 {
1509
- case 0 : return nil
1510
- case 1 : return try FfiConverterUInt64 . read ( from: & buf)
1511
- default : throw UniffiInternalError . unexpectedOptionalTag
1512
- }
1513
- }
1514
- }
1515
-
1516
1487
fileprivate struct FfiConverterOptionString : FfiConverterRustBuffer {
1517
1488
typealias SwiftType = String ?
1518
1489
0 commit comments