If you want to represent instants as timestamps, you can write a custom serializer that applies on Instant
s and just encodes/decodes an integer. I’ve done that several times, effectively decoupling encoding from ergonomy.
If you want to represent instants as timestamps, you can write a custom serializer that applies on Instant
s and just encodes/decodes an integer. I’ve done that several times, effectively decoupling encoding from ergonomy.