@@ -966,11 +966,11 @@ extension SuggestProviderConfig: Equatable, Hashable {}
966
966
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
967
967
public enum Suggestion {
968
968
969
- case amp( title: String , url: String , rawUrl: String , icon: [ UInt8 ] ? , fullKeyword: String , blockId: Int64 , advertiser: String , iabCategory: String , impressionUrl: String , clickUrl: String , rawClickUrl: String , score: Double )
969
+ case amp( title: String , url: String , rawUrl: String , icon: [ UInt8 ] ? , iconMimetype : String ? , fullKeyword: String , blockId: Int64 , advertiser: String , iabCategory: String , impressionUrl: String , clickUrl: String , rawClickUrl: String , score: Double )
970
970
case pocket( title: String , url: String , score: Double , isTopPick: Bool )
971
- case wikipedia( title: String , url: String , icon: [ UInt8 ] ? , fullKeyword: String )
971
+ case wikipedia( title: String , url: String , icon: [ UInt8 ] ? , iconMimetype : String ? , fullKeyword: String )
972
972
case amo( title: String , url: String , iconUrl: String , description: String , rating: String ? , numberOfRatings: Int64 , guid: String , score: Double )
973
- case yelp( url: String , title: String , icon: [ UInt8 ] ? , score: Double , hasLocationSign: Bool , subjectExactMatch: Bool , locationParam: String )
973
+ case yelp( url: String , title: String , icon: [ UInt8 ] ? , iconMimetype : String ? , score: Double , hasLocationSign: Bool , subjectExactMatch: Bool , locationParam: String )
974
974
case mdn( title: String , url: String , description: String , score: Double )
975
975
case weather( score: Double )
976
976
}
@@ -987,6 +987,7 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
987
987
url: try FfiConverterString . read ( from: & buf) ,
988
988
rawUrl: try FfiConverterString . read ( from: & buf) ,
989
989
icon: try FfiConverterOptionSequenceUInt8 . read ( from: & buf) ,
990
+ iconMimetype: try FfiConverterOptionString . read ( from: & buf) ,
990
991
fullKeyword: try FfiConverterString . read ( from: & buf) ,
991
992
blockId: try FfiConverterInt64 . read ( from: & buf) ,
992
993
advertiser: try FfiConverterString . read ( from: & buf) ,
@@ -1008,6 +1009,7 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
1008
1009
title: try FfiConverterString . read ( from: & buf) ,
1009
1010
url: try FfiConverterString . read ( from: & buf) ,
1010
1011
icon: try FfiConverterOptionSequenceUInt8 . read ( from: & buf) ,
1012
+ iconMimetype: try FfiConverterOptionString . read ( from: & buf) ,
1011
1013
fullKeyword: try FfiConverterString . read ( from: & buf)
1012
1014
)
1013
1015
@@ -1026,6 +1028,7 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
1026
1028
url: try FfiConverterString . read ( from: & buf) ,
1027
1029
title: try FfiConverterString . read ( from: & buf) ,
1028
1030
icon: try FfiConverterOptionSequenceUInt8 . read ( from: & buf) ,
1031
+ iconMimetype: try FfiConverterOptionString . read ( from: & buf) ,
1029
1032
score: try FfiConverterDouble . read ( from: & buf) ,
1030
1033
hasLocationSign: try FfiConverterBool . read ( from: & buf) ,
1031
1034
subjectExactMatch: try FfiConverterBool . read ( from: & buf) ,
@@ -1051,12 +1054,13 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
1051
1054
switch value {
1052
1055
1053
1056
1054
- case let . amp( title, url, rawUrl, icon, fullKeyword, blockId, advertiser, iabCategory, impressionUrl, clickUrl, rawClickUrl, score) :
1057
+ case let . amp( title, url, rawUrl, icon, iconMimetype , fullKeyword, blockId, advertiser, iabCategory, impressionUrl, clickUrl, rawClickUrl, score) :
1055
1058
writeInt ( & buf, Int32 ( 1 ) )
1056
1059
FfiConverterString . write ( title, into: & buf)
1057
1060
FfiConverterString . write ( url, into: & buf)
1058
1061
FfiConverterString . write ( rawUrl, into: & buf)
1059
1062
FfiConverterOptionSequenceUInt8 . write ( icon, into: & buf)
1063
+ FfiConverterOptionString . write ( iconMimetype, into: & buf)
1060
1064
FfiConverterString . write ( fullKeyword, into: & buf)
1061
1065
FfiConverterInt64 . write ( blockId, into: & buf)
1062
1066
FfiConverterString . write ( advertiser, into: & buf)
@@ -1075,11 +1079,12 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
1075
1079
FfiConverterBool . write ( isTopPick, into: & buf)
1076
1080
1077
1081
1078
- case let . wikipedia( title, url, icon, fullKeyword) :
1082
+ case let . wikipedia( title, url, icon, iconMimetype , fullKeyword) :
1079
1083
writeInt ( & buf, Int32 ( 3 ) )
1080
1084
FfiConverterString . write ( title, into: & buf)
1081
1085
FfiConverterString . write ( url, into: & buf)
1082
1086
FfiConverterOptionSequenceUInt8 . write ( icon, into: & buf)
1087
+ FfiConverterOptionString . write ( iconMimetype, into: & buf)
1083
1088
FfiConverterString . write ( fullKeyword, into: & buf)
1084
1089
1085
1090
@@ -1095,11 +1100,12 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
1095
1100
FfiConverterDouble . write ( score, into: & buf)
1096
1101
1097
1102
1098
- case let . yelp( url, title, icon, score, hasLocationSign, subjectExactMatch, locationParam) :
1103
+ case let . yelp( url, title, icon, iconMimetype , score, hasLocationSign, subjectExactMatch, locationParam) :
1099
1104
writeInt ( & buf, Int32 ( 5 ) )
1100
1105
FfiConverterString . write ( url, into: & buf)
1101
1106
FfiConverterString . write ( title, into: & buf)
1102
1107
FfiConverterOptionSequenceUInt8 . write ( icon, into: & buf)
1108
+ FfiConverterOptionString . write ( iconMimetype, into: & buf)
1103
1109
FfiConverterDouble . write ( score, into: & buf)
1104
1110
FfiConverterBool . write ( hasLocationSign, into: & buf)
1105
1111
FfiConverterBool . write ( subjectExactMatch, into: & buf)
0 commit comments