21 Commits

Author SHA1 Message Date
Jonas Platte
ca5c65ef10
Revise trait implementations 2020-05-02 14:15:13 +02:00
Jonas Platte
f783ea6167
Fix unsigned field deserialization 2020-04-28 00:30:05 +02:00
Jonas Platte
55340d18c8
Add struct UnsignedData and update unsigned fields to use it 2020-04-28 00:03:48 +02:00
Jonas Platte
2480bb292a
Replace HashMap with BTreeMap 2020-04-19 17:46:36 +02:00
Jonas Platte
dc0a9f88ba
Change timestamp types from UInt to SystemTime 2020-04-17 22:43:30 +02:00
Jonas Platte
cba7b161e9
Update unsigned field's type from Option<Value> to Map<String, Value>
* it's guaranteed to always be an object
* `Option` isn't needed because the distinction empty object / missing
  field is not of interest
2020-03-29 15:37:57 +02:00
Akshay
f09ab98f17
Remove manual Serialize impl, use derive macro instead 2020-03-29 13:41:42 +02:00
Ragotzy.devin
8ea971b082
Derive Serialize in ruma_events!, use json EventType string for event_type field
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2020-03-24 14:25:50 +01:00
Ragotzy.devin
14df832005
Remove special handling of custom events 2020-03-24 11:31:47 +01:00
Jonas Platte
5a79b766c7
Revert "Remove special handling of custom events"
This reverts commit 539dd5f31dff172b5d6559378e33982d0a0c3333.
2020-03-24 11:31:36 +01:00
Ragotzy.devin
539dd5f31d
Remove special handling of custom events
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2020-03-24 11:27:55 +01:00
Jonas Platte
0c6dd0ba32
Simplify proc_macro tests
… by moving them from ruma-events-macros to ruma-events and updating the
macros to work in different contexts (without items like FromRaw being
available at the calling crate's root)
2020-03-17 13:10:40 +01:00
Jonas Platte
016659a99c
Split impl FromRaw generation into its own macro 2020-03-16 23:27:32 +01:00
Jonas Platte
ddbb06f21d
Clean up code gen a bit 2020-03-16 21:22:56 +01:00
stoically
3128351031
Rename event_type when deserializing custom events 2020-01-01 20:20:13 +01:00
Jonas Platte
370c56ef31
Use quote::format_ident! 2019-12-13 20:42:20 +01:00
Jonas Platte
09b8de5b6e Introduce FromRaw in addition to TryFromRaw 2019-10-15 20:26:30 +02:00
Jonas Platte
a6c34596d7 Rename EventResultCompatible to TryFromRaw 2019-10-15 20:05:46 +02:00
Jonas Platte
c20d79db7d Inline try_from method into EventResultCompatible 2019-10-08 21:28:18 +02:00
Jonas Platte
05562a48a3 WIP 2019-09-29 13:30:51 +02:00
Jonas Platte
883a9566d2 Add 'ruma-events-macros/' from commit '659dc963949cdb3d928d9f5d3ed9a49e1e2b6158'
git-subtree-dir: ruma-events-macros
git-subtree-mainline: 91d564dcf812196f7497fe93ea5591eab8d83d1d
git-subtree-split: 659dc963949cdb3d928d9f5d3ed9a49e1e2b6158
2019-09-13 22:17:22 +02:00