@@ -681,6 +681,7 @@ extension SuggestApiError: Error { }
681
681
public enum Suggestion {
682
682
683
683
case `amp`( `title`: String , `url`: String , `rawUrl`: String , `icon`: [ UInt8 ] ? , `fullKeyword`: String , `blockId`: Int64 , `advertiser`: String , `iabCategory`: String , `impressionUrl`: String , `clickUrl`: String , `rawClickUrl`: String )
684
+ case `pocket`( `title`: String , `url`: String , `score`: Double , `isTopPick`: Bool )
684
685
case `wikipedia`( `title`: String , `url`: String , `icon`: [ UInt8 ] ? , `fullKeyword`: String )
685
686
case `amo`( `title`: String , `url`: String , `iconUrl`: String , `description`: String , `rating`: String ? , `numberOfRatings`: Int64 , `guid`: String , `score`: Double )
686
687
}
@@ -706,14 +707,21 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
706
707
`rawClickUrl`: try FfiConverterString . read ( from: & buf)
707
708
)
708
709
709
- case 2 : return . `wikipedia`(
710
+ case 2 : return . `pocket`(
711
+ `title`: try FfiConverterString . read ( from: & buf) ,
712
+ `url`: try FfiConverterString . read ( from: & buf) ,
713
+ `score`: try FfiConverterDouble . read ( from: & buf) ,
714
+ `isTopPick`: try FfiConverterBool . read ( from: & buf)
715
+ )
716
+
717
+ case 3 : return . `wikipedia`(
710
718
`title`: try FfiConverterString . read ( from: & buf) ,
711
719
`url`: try FfiConverterString . read ( from: & buf) ,
712
720
`icon`: try FfiConverterOptionSequenceUInt8 . read ( from: & buf) ,
713
721
`fullKeyword`: try FfiConverterString . read ( from: & buf)
714
722
)
715
723
716
- case 3 : return . `amo`(
724
+ case 4 : return . `amo`(
717
725
`title`: try FfiConverterString . read ( from: & buf) ,
718
726
`url`: try FfiConverterString . read ( from: & buf) ,
719
727
`iconUrl`: try FfiConverterString . read ( from: & buf) ,
@@ -747,16 +755,24 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
747
755
FfiConverterString . write ( `rawClickUrl`, into: & buf)
748
756
749
757
750
- case let . `wikipedia `( `title`, `url`, `icon `, `fullKeyword `) :
758
+ case let . `pocket `( `title`, `url`, `score `, `isTopPick `) :
751
759
writeInt ( & buf, Int32 ( 2 ) )
752
760
FfiConverterString . write ( `title`, into: & buf)
753
761
FfiConverterString . write ( `url`, into: & buf)
762
+ FfiConverterDouble . write ( `score`, into: & buf)
763
+ FfiConverterBool . write ( `isTopPick`, into: & buf)
764
+
765
+
766
+ case let . `wikipedia`( `title`, `url`, `icon`, `fullKeyword`) :
767
+ writeInt ( & buf, Int32 ( 3 ) )
768
+ FfiConverterString . write ( `title`, into: & buf)
769
+ FfiConverterString . write ( `url`, into: & buf)
754
770
FfiConverterOptionSequenceUInt8 . write ( `icon`, into: & buf)
755
771
FfiConverterString . write ( `fullKeyword`, into: & buf)
756
772
757
773
758
774
case let . `amo`( `title`, `url`, `iconUrl`, `description`, `rating`, `numberOfRatings`, `guid`, `score`) :
759
- writeInt ( & buf, Int32 ( 3 ) )
775
+ writeInt ( & buf, Int32 ( 4 ) )
760
776
FfiConverterString . write ( `title`, into: & buf)
761
777
FfiConverterString . write ( `url`, into: & buf)
762
778
FfiConverterString . write ( `iconUrl`, into: & buf)
@@ -789,6 +805,7 @@ extension Suggestion: Equatable, Hashable {}
789
805
public enum SuggestionProvider {
790
806
791
807
case `amp`
808
+ case `pocket`
792
809
case `wikipedia`
793
810
case `amo`
794
811
}
@@ -802,9 +819,11 @@ public struct FfiConverterTypeSuggestionProvider: FfiConverterRustBuffer {
802
819
803
820
case 1 : return . `amp`
804
821
805
- case 2 : return . `wikipedia `
822
+ case 2 : return . `pocket `
806
823
807
- case 3 : return . `amo`
824
+ case 3 : return . `wikipedia`
825
+
826
+ case 4 : return . `amo`
808
827
809
828
default : throw UniffiInternalError . unexpectedEnumCase
810
829
}
@@ -818,13 +837,17 @@ public struct FfiConverterTypeSuggestionProvider: FfiConverterRustBuffer {
818
837
writeInt ( & buf, Int32 ( 1 ) )
819
838
820
839
821
- case . `wikipedia `:
840
+ case . `pocket `:
822
841
writeInt ( & buf, Int32 ( 2 ) )
823
842
824
843
825
- case . `amo `:
844
+ case . `wikipedia `:
826
845
writeInt ( & buf, Int32 ( 3 ) )
827
846
847
+
848
+ case . `amo`:
849
+ writeInt ( & buf, Int32 ( 4 ) )
850
+
828
851
}
829
852
}
830
853
}
0 commit comments