atspi: Make EventBody
generic over serializable types for kind
#36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I still haven't figured out the best way forward for this, but at least now it's possible to serialize events holding a
kind
which type is something other than&str
. At least I'll be able to take advantage of this for AccessKit.State
type.EventBodyQT
(I don't see why we would need a borrowing version of this type, it's kind of a bug in Qt so you wouldn't want anybody to use it on the server-side).EventBody<&str>
(except object'sstate_changed
which now takesEventBody<State>
).Hopefully this can spark ideas on how to better type-check these event related structs.