This PR adds a derive macro IntoEvent to package/std. This macro helps make an event from a structure. When a structure type is defined with IntoEvent, this macro makes a cast function from the structure to Event.
Added code are the same as https://github.com/loloicci/line-cosmwasm/pull/1
Closes #143
Types of changes
[ ] Bug fix (changes which fixes an issue)
[x] New feature (changes which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
This PR adds a derive macro
IntoEvent
to package/std. This macro helps make an event from a structure. When a structure type is defined withIntoEvent
, this macro makes a cast function from the structure toEvent
. Added code are the same as https://github.com/loloicci/line-cosmwasm/pull/1Closes #143
Types of changes
Checklist