bdk-ffi icon indicating copy to clipboard operation
bdk-ffi copied to clipboard

Write `Display` and `Debug` traits for uniffi Records and Enums

Open thunderbiscuit opened this issue 2 months ago • 0 comments

This is now available as of uniffi-rs 0.30.0.

Note that it doesn't work on pure enums, and only on enums that hold data (the ones that get transformed into sealed classes in Kotlin).

Notes:

  • Both Debug and Display will generate the toString() method in Kotlin, with the Display taking precedence over Debug if it exists.
  • The Debug will generate the __repr__ and the Display will generate __str__ methods in Python.
  • Swift? I need to test.

thunderbiscuit avatar Oct 10 '25 18:10 thunderbiscuit