At the moment I just cast everything to a string. I'd be ok with the option add a `.to_capnproto()` method on any classes I need, or something similar. Maybe if the type isn't recognized it looks for that method?
Would be easy to monkey patch UUID or any other type this way. Honestly, I haven't thought it through too deeply. The nice part about this is i could add that method to all my existing classes and just return them directly, and they could auto serialize to the struct they need to be.
There's a decent chance this is a terrible idea. I don't know the internals well enough yet to be sure.
Jon