@@ -297,27 +297,6 @@ private func uniffiCheckCallStatus(
297297// Public interface members begin here.
298298
299299
300- fileprivate struct FfiConverterBool : FfiConverter {
301- typealias FfiType = Int8
302- typealias SwiftType = Bool
303-
304- public static func lift( _ value: Int8 ) throws -> Bool {
305- return value != 0
306- }
307-
308- public static func lower( _ value: Bool ) -> Int8 {
309- return value ? 1 : 0
310- }
311-
312- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> Bool {
313- return try lift ( readInt ( & buf) )
314- }
315-
316- public static func write( _ value: Bool , into buf: inout [ UInt8 ] ) {
317- writeInt ( & buf, lower ( value) )
318- }
319- }
320-
321300fileprivate struct FfiConverterString : FfiConverter {
322301 typealias SwiftType = String
323302 typealias FfiType = RustBuffer
@@ -356,79 +335,6 @@ fileprivate struct FfiConverterString: FfiConverter {
356335 }
357336}
358337
359-
360- /**
361- * Holds information computed from the room account data `m.tag` events.
362- */
363- public struct RoomNotableTags {
364- /**
365- * Whether or not the room is marked as favorite.
366- */
367- public var isFavorite : Bool
368- /**
369- * Whether or not the room is marked as low priority.
370- */
371- public var isLowPriority : Bool
372-
373- // Default memberwise initializers are never public by default, so we
374- // declare one manually.
375- public init (
376- /**
377- * Whether or not the room is marked as favorite.
378- */
379- isFavorite: Bool ,
380- /**
381- * Whether or not the room is marked as low priority.
382- */
383- isLowPriority: Bool ) {
384- self . isFavorite = isFavorite
385- self . isLowPriority = isLowPriority
386- }
387- }
388-
389-
390- extension RoomNotableTags : Equatable , Hashable {
391- public static func == ( lhs: RoomNotableTags , rhs: RoomNotableTags ) -> Bool {
392- if lhs. isFavorite != rhs. isFavorite {
393- return false
394- }
395- if lhs. isLowPriority != rhs. isLowPriority {
396- return false
397- }
398- return true
399- }
400-
401- public func hash( into hasher: inout Hasher ) {
402- hasher. combine ( isFavorite)
403- hasher. combine ( isLowPriority)
404- }
405- }
406-
407-
408- public struct FfiConverterTypeRoomNotableTags : FfiConverterRustBuffer {
409- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> RoomNotableTags {
410- return
411- try RoomNotableTags (
412- isFavorite: FfiConverterBool . read ( from: & buf) ,
413- isLowPriority: FfiConverterBool . read ( from: & buf)
414- )
415- }
416-
417- public static func write( _ value: RoomNotableTags , into buf: inout [ UInt8 ] ) {
418- FfiConverterBool . write ( value. isFavorite, into: & buf)
419- FfiConverterBool . write ( value. isLowPriority, into: & buf)
420- }
421- }
422-
423-
424- public func FfiConverterTypeRoomNotableTags_lift( _ buf: RustBuffer ) throws -> RoomNotableTags {
425- return try FfiConverterTypeRoomNotableTags . lift ( buf)
426- }
427-
428- public func FfiConverterTypeRoomNotableTags_lower( _ value: RoomNotableTags ) -> RustBuffer {
429- return FfiConverterTypeRoomNotableTags . lower ( value)
430- }
431-
432338private enum InitializationResult {
433339 case ok
434340 case contractVersionMismatch
0 commit comments